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