KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > osgi > service > url > URLStreamHandlerSetter


1 /*
2  * $Header: /cvshome/build/org.osgi.service.url/src/org/osgi/service/url/URLStreamHandlerSetter.java,v 1.9 2006/07/11 00:53:59 hargrave Exp $
3  *
4  * Copyright (c) OSGi Alliance (2002, 2006). All Rights Reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19 package org.osgi.service.url;
20
21 import java.net.URL JavaDoc;
22
23 /**
24  * Interface used by <code>URLStreamHandlerService</code> objects to call the
25  * <code>setURL</code> method on the proxy <code>URLStreamHandler</code> object.
26  *
27  * <p>
28  * Objects of this type are passed to the
29  * {@link URLStreamHandlerService#parseURL} method. Invoking the <code>setURL</code>
30  * method on the <code>URLStreamHandlerSetter</code> object will invoke the
31  * <code>setURL</code> method on the proxy <code>URLStreamHandler</code> object that
32  * is actually registered with <code>java.net.URL</code> for the protocol.
33  *
34  * @version $Revision: 1.9 $
35  */

36 public interface URLStreamHandlerSetter {
37     /**
38      * @see "java.net.URLStreamHandler.setURL(URL,String,String,int,String,String)"
39      *
40      * @deprecated This method is only for compatibility with handlers written
41      * for JDK 1.1.
42      */

43     public void setURL(URL JavaDoc u, String JavaDoc protocol, String JavaDoc host, int port,
44             String JavaDoc file, String JavaDoc ref);
45
46     /**
47      * @see "java.net.URLStreamHandler.setURL(URL,String,String,int,String,String,String,String)"
48      */

49     public void setURL(URL JavaDoc u, String JavaDoc protocol, String JavaDoc host, int port,
50             String JavaDoc authority, String JavaDoc userInfo, String JavaDoc path, String JavaDoc query,
51             String JavaDoc ref);
52 }
53
Popular Tags