public class StreamHandlerFactory extends MultiplexingFactory implements URLStreamHandlerFactory
Modifier and Type | Field and Description |
---|---|
protected static String |
INTERNAL_PROTOCOL_HANDLER_PKG |
protected static String |
PROTOCOL_HANDLER_PKGS |
protected static String |
URLSTREAMHANDLERCLASS |
adaptor, context, PACKAGEADMINCLASS
Constructor and Description |
---|
StreamHandlerFactory(BundleContext context,
FrameworkAdaptor adaptor)
Create the factory.
|
Modifier and Type | Method and Description |
---|---|
URLStreamHandler |
createInternalURLStreamHandler(String protocol) |
URLStreamHandler |
createURLStreamHandler(String protocol)
Creates a new URLStreamHandler instance for the specified
protocol.
|
protected URLStreamHandler |
findAuthorizedURLStreamHandler(String protocol) |
Object |
getParentFactory() |
void |
setParentFactory(Object parentFactory) |
designateSuccessor, findAuthorizedFactory, hasAuthority, isMultiplexing, register, unregister
protected static final String URLSTREAMHANDLERCLASS
protected static final String PROTOCOL_HANDLER_PKGS
protected static final String INTERNAL_PROTOCOL_HANDLER_PKG
public StreamHandlerFactory(BundleContext context, FrameworkAdaptor adaptor)
context
- BundleContext for the system bundlepublic URLStreamHandler createURLStreamHandler(String protocol)
createURLStreamHandler
in interface URLStreamHandlerFactory
protocol
- The desired protocolpublic URLStreamHandler createInternalURLStreamHandler(String protocol)
protected URLStreamHandler findAuthorizedURLStreamHandler(String protocol)
public Object getParentFactory()
getParentFactory
in class MultiplexingFactory
public void setParentFactory(Object parentFactory)
setParentFactory
in class MultiplexingFactory
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.