annotate bindings/as3/ext/com/adobe/net/IURIResolver.as @ 770:c54bc2ffbf92 tip

update tags
author convert-repo
date Fri, 16 Dec 2011 11:34:01 +0000
parents 3a0b9700b3d2
children
rev   line source
mas01mj@732 1 /*
mas01mj@732 2 Copyright (c) 2008, Adobe Systems Incorporated
mas01mj@732 3 All rights reserved.
mas01mj@732 4
mas01mj@732 5 Redistribution and use in source and binary forms, with or without
mas01mj@732 6 modification, are permitted provided that the following conditions are
mas01mj@732 7 met:
mas01mj@732 8
mas01mj@732 9 * Redistributions of source code must retain the above copyright notice,
mas01mj@732 10 this list of conditions and the following disclaimer.
mas01mj@732 11
mas01mj@732 12 * Redistributions in binary form must reproduce the above copyright
mas01mj@732 13 notice, this list of conditions and the following disclaimer in the
mas01mj@732 14 documentation and/or other materials provided with the distribution.
mas01mj@732 15
mas01mj@732 16 * Neither the name of Adobe Systems Incorporated nor the names of its
mas01mj@732 17 contributors may be used to endorse or promote products derived from
mas01mj@732 18 this software without specific prior written permission.
mas01mj@732 19
mas01mj@732 20 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
mas01mj@732 21 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
mas01mj@732 22 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
mas01mj@732 23 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
mas01mj@732 24 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
mas01mj@732 25 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
mas01mj@732 26 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
mas01mj@732 27 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
mas01mj@732 28 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
mas01mj@732 29 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
mas01mj@732 30 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mas01mj@732 31 */
mas01mj@732 32
mas01mj@732 33 package com.adobe.net
mas01mj@732 34 {
mas01mj@732 35 /**
mas01mj@732 36 * The URI class cannot know about DNS aliases, virtual hosts, or
mas01mj@732 37 * symbolic links that may be involved. The application can provide
mas01mj@732 38 * an implementation of this interface to resolve the URI before the
mas01mj@732 39 * URI class makes any comparisons. For example, a web host has
mas01mj@732 40 * two aliases:
mas01mj@732 41 *
mas01mj@732 42 * <p><code>
mas01mj@732 43 * http://www.site.com/
mas01mj@732 44 * http://www.site.net/
mas01mj@732 45 * </code></p>
mas01mj@732 46 *
mas01mj@732 47 * <p>The application can provide an implementation that automatically
mas01mj@732 48 * resolves site.net to site.com before URI compares two URI objects.
mas01mj@732 49 * Only the application can know and understand the context in which
mas01mj@732 50 * the URI's are being used.</p>
mas01mj@732 51 *
mas01mj@732 52 * <p>Use the URI.resolver accessor to assign a custom resolver to
mas01mj@732 53 * the URI class. Any resolver specified is global to all instances
mas01mj@732 54 * of URI.</p>
mas01mj@732 55 *
mas01mj@732 56 * <p>URI will call this before performing URI comparisons in the
mas01mj@732 57 * URI.getRelation() and URI.getCommonParent() functions.
mas01mj@732 58 *
mas01mj@732 59 * @see URI.getRelation
mas01mj@732 60 * @see URI.getCommonParent
mas01mj@732 61 *
mas01mj@732 62 * @langversion ActionScript 3.0
mas01mj@732 63 * @playerversion Flash 9.0
mas01mj@732 64 */
mas01mj@732 65 public interface IURIResolver
mas01mj@732 66 {
mas01mj@732 67 /**
mas01mj@732 68 * Implement this method to provide custom URI resolution for
mas01mj@732 69 * your application.
mas01mj@732 70 *
mas01mj@732 71 * @langversion ActionScript 3.0
mas01mj@732 72 * @playerversion Flash 9.0
mas01mj@732 73 */
mas01mj@732 74 function resolve(uri:URI) : URI;
mas01mj@732 75 }
mas01mj@732 76 }