source: code/Website/open-flash-chart/com/adobe/net/IURIResolver.as@ 7849

Last change on this file since 7849 was 7849, checked in by dennisw, 15 years ago
File size: 3.2 KB
Line 
1/*
2 Adobe Systems Incorporated(r) Source Code License Agreement
3 Copyright(c) 2005 Adobe Systems Incorporated. All rights reserved.
4
5 Please read this Source Code License Agreement carefully before using
6 the source code.
7
8 Adobe Systems Incorporated grants to you a perpetual, worldwide, non-exclusive,
9 no-charge, royalty-free, irrevocable copyright license, to reproduce,
10 prepare derivative works of, publicly display, publicly perform, and
11 distribute this source code and such derivative works in source or
12 object code form without any attribution requirements.
13
14 The name "Adobe Systems Incorporated" must not be used to endorse or promote products
15 derived from the source code without prior written permission.
16
17 You agree to indemnify, hold harmless and defend Adobe Systems Incorporated from and
18 against any loss, damage, claims or lawsuits, including attorney's
19 fees that arise or result from your use or distribution of the source
20 code.
21
22 THIS SOURCE CODE IS PROVIDED "AS IS" AND "WITH ALL FAULTS", WITHOUT
23 ANY TECHNICAL SUPPORT OR ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
24 BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25 FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ALSO, THERE IS NO WARRANTY OF
26 NON-INFRINGEMENT, TITLE OR QUIET ENJOYMENT. IN NO EVENT SHALL MACROMEDIA
27 OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
29 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
30 OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
31 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
32 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOURCE CODE, EVEN IF
33 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34*/
35
36package com.adobe.net
37{
38 /**
39 * The URI class cannot know about DNS aliases, virtual hosts, or
40 * symbolic links that may be involved. The application can provide
41 * an implementation of this interface to resolve the URI before the
42 * URI class makes any comparisons. For example, a web host has
43 * two aliases:
44 *
45 * <p><code>
46 * http://www.site.com/
47 * http://www.site.net/
48 * </code></p>
49 *
50 * <p>The application can provide an implementation that automatically
51 * resolves site.net to site.com before URI compares two URI objects.
52 * Only the application can know and understand the context in which
53 * the URI's are being used.</p>
54 *
55 * <p>Use the URI.resolver accessor to assign a custom resolver to
56 * the URI class. Any resolver specified is global to all instances
57 * of URI.</p>
58 *
59 * <p>URI will call this before performing URI comparisons in the
60 * URI.getRelation() and URI.getCommonParent() functions.
61 *
62 * @see URI.getRelation
63 * @see URI.getCommonParent
64 *
65 * @langversion ActionScript 3.0
66 * @playerversion Flash 9.0
67 */
68 public interface IURIResolver
69 {
70 /**
71 * Implement this method to provide custom URI resolution for
72 * your application.
73 *
74 * @langversion ActionScript 3.0
75 * @playerversion Flash 9.0
76 */
77 function resolve(uri:URI) : URI;
78 }
79}
Note: See TracBrowser for help on using the repository browser.