Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/protocol/URLStreamHandlerSetter.java')
-rw-r--r--bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/protocol/URLStreamHandlerSetter.java57
1 files changed, 57 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/protocol/URLStreamHandlerSetter.java b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/protocol/URLStreamHandlerSetter.java
new file mode 100644
index 000000000..740033f4e
--- /dev/null
+++ b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/protocol/URLStreamHandlerSetter.java
@@ -0,0 +1,57 @@
+/*******************************************************************************
+ * Copyright (c) 2003 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.osgi.framework.internal.protocol;
+
+import java.net.URL;
+
+public class URLStreamHandlerSetter
+
+ implements org.osgi.service.url.URLStreamHandlerSetter {
+
+ protected URLStreamHandlerProxy handlerProxy;
+
+ public URLStreamHandlerSetter(URLStreamHandlerProxy handler)
+ {
+ this.handlerProxy = handler;
+ }
+
+ /**
+ * @see org.osgi.service.url.URLStreamHandlerSetter#setURL(URL, String, String, int, String, String)
+ */
+ public void setURL(
+ URL url,
+ String protocol,
+ String host,
+ int port,
+ String file,
+ String ref)
+ {
+ handlerProxy.setURL(url,protocol,host,port,file,ref);
+ }
+
+ /**
+ * @see org.osgi.service.url.URLStreamHandlerSetter#setURL(URL, String, String, int, String, String, String, String, String)
+ */
+ public void setURL(
+ URL url,
+ String protocol,
+ String host,
+ int port,
+ String authority,
+ String userInfo,
+ String path,
+ String query,
+ String ref) {
+ handlerProxy.setURL(url,protocol,host,port,authority,userInfo,path,query,ref);
+ }
+
+} \ No newline at end of file

Back to the top