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:
- URLStreamHandlerFactory
public class StreamHandlerFactory
- extends MultiplexingFactory
- implements 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 String URLSTREAMHANDLERCLASS
- See Also:
- Constant Field Values
PROTOCOL_HANDLER_PKGS
protected static final String PROTOCOL_HANDLER_PKGS
- See Also:
- Constant Field Values
INTERNAL_PROTOCOL_HANDLER_PKG
protected static final 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 URLStreamHandler createURLStreamHandler(String protocol)
- Creates a new URLStreamHandler instance for the specified
protocol.
- Specified by:
createURLStreamHandler in interface URLStreamHandlerFactory
- Parameters:
protocol - The desired protocol
- Returns:
- a URLStreamHandler for the specific protocol.
createInternalURLStreamHandler
public URLStreamHandler createInternalURLStreamHandler(String protocol)
findAuthorizedURLStreamHandler
protected URLStreamHandler findAuthorizedURLStreamHandler(String protocol)
getParentFactory
public Object getParentFactory()
- Specified by:
getParentFactory in class MultiplexingFactory
setParentFactory
public void setParentFactory(Object parentFactory)
- Specified by:
setParentFactory in class MultiplexingFactory
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.