org.eclipse.osgi.framework.internal.protocol
Class StreamHandlerFactory

java.lang.Object
  extended by org.eclipse.osgi.framework.internal.protocol.MultiplexingFactory
      extended by 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.


Field Summary
protected static java.lang.String INTERNAL_PROTOCOL_HANDLER_PKG
           
protected static java.lang.String PROTOCOL_HANDLER_PKGS
           
protected static java.lang.String URLSTREAMHANDLERCLASS
           
 
Fields inherited from class org.eclipse.osgi.framework.internal.protocol.MultiplexingFactory
adaptor, context, PACKAGEADMINCLASS
 
Constructor Summary
StreamHandlerFactory(BundleContext context, FrameworkAdaptor adaptor)
          Create the factory.
 
Method Summary
 java.net.URLStreamHandler createInternalURLStreamHandler(java.lang.String protocol)
           
 java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
          Creates a new URLStreamHandler instance for the specified protocol.
protected  java.net.URLStreamHandler findAuthorizedURLStreamHandler(java.lang.String protocol)
           
 java.lang.Object getParentFactory()
           
 void setParentFactory(java.lang.Object parentFactory)
           
 
Methods inherited from class org.eclipse.osgi.framework.internal.protocol.MultiplexingFactory
designateSuccessor, findAuthorizedFactory, hasAuthority, isMultiplexing, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

StreamHandlerFactory

public StreamHandlerFactory(BundleContext context,
                            FrameworkAdaptor adaptor)
Create the factory.

Parameters:
context - BundleContext for the system bundle
Method Detail

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