org.eclipse.osgi.framework.internal.protocol
Class StreamHandlerFactory
java.lang.Object
org.eclipse.osgi.framework.internal.protocol.MultiplexingFactory
org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory
- All Implemented Interfaces:
- java.net.URLStreamHandlerFactory
public class StreamHandlerFactory
- extends MultiplexingFactory
- implements java.net.URLStreamHandlerFactory
This class contains the URL stream handler factory for the OSGi framework.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLSTREAMHANDLERCLASS
protected static final java.lang.String URLSTREAMHANDLERCLASS
- See Also:
- Constant Field Values
PROTOCOL_HANDLER_PKGS
protected static final java.lang.String PROTOCOL_HANDLER_PKGS
- See Also:
- Constant Field Values
INTERNAL_PROTOCOL_HANDLER_PKG
protected static final java.lang.String INTERNAL_PROTOCOL_HANDLER_PKG
- See Also:
- Constant Field Values
StreamHandlerFactory
public StreamHandlerFactory(BundleContext context,
FrameworkAdaptor adaptor)
- Create the factory.
- Parameters:
context
- BundleContext for the system bundle
createURLStreamHandler
public java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
- Creates a new URLStreamHandler instance for the specified
protocol.
- Specified by:
createURLStreamHandler
in interface java.net.URLStreamHandlerFactory
- Parameters:
protocol
- The desired protocol
- Returns:
- a URLStreamHandler for the specific protocol.
createInternalURLStreamHandler
public java.net.URLStreamHandler createInternalURLStreamHandler(java.lang.String protocol)
findAuthorizedURLStreamHandler
protected java.net.URLStreamHandler findAuthorizedURLStreamHandler(java.lang.String protocol)
getParentFactory
public java.lang.Object getParentFactory()
- Specified by:
getParentFactory
in class MultiplexingFactory
setParentFactory
public void setParentFactory(java.lang.Object parentFactory)
- Specified by:
setParentFactory
in class MultiplexingFactory