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:
URLStreamHandlerFactory

public class StreamHandlerFactory
extends MultiplexingFactory
implements URLStreamHandlerFactory

This class contains the URL stream handler factory for the OSGi framework.


Field Summary
protected static String INTERNAL_PROTOCOL_HANDLER_PKG
           
protected static String PROTOCOL_HANDLER_PKGS
           
protected static 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
 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)
           
 
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 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
Constructor Detail

StreamHandlerFactory

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

Parameters:
context - BundleContext for the system bundle
Method Detail

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.