KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > osgi > framework > internal > protocol > URLStreamHandlerSetter


1 /*******************************************************************************
2  * Copyright (c) 2003, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.osgi.framework.internal.protocol;
13
14 import java.net.URL JavaDoc;
15
16 public class URLStreamHandlerSetter implements org.osgi.service.url.URLStreamHandlerSetter {
17
18     protected URLStreamHandlerProxy handlerProxy;
19
20     public URLStreamHandlerSetter(URLStreamHandlerProxy handler) {
21         this.handlerProxy = handler;
22     }
23
24     /**
25      * @see org.osgi.service.url.URLStreamHandlerSetter#setURL(URL, String, String, int, String, String)
26      * @deprecated
27      */

28     public void setURL(URL JavaDoc url, String JavaDoc protocol, String JavaDoc host, int port, String JavaDoc file, String JavaDoc ref) {
29         handlerProxy.setURL(url, protocol, host, port, file, ref);
30     }
31
32     /**
33      * @see org.osgi.service.url.URLStreamHandlerSetter#setURL(URL, String, String, int, String, String, String, String, String)
34      */

35     public void setURL(URL JavaDoc url, String JavaDoc protocol, String JavaDoc host, int port, String JavaDoc authority, String JavaDoc userInfo, String JavaDoc path, String JavaDoc query, String JavaDoc ref) {
36         handlerProxy.setURL(url, protocol, host, port, authority, userInfo, path, query, ref);
37     }
38
39 }
40
Popular Tags