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

java.lang.Object
  extended by org.eclipse.osgi.framework.internal.protocol.MultiplexingFactory
      extended by org.eclipse.osgi.framework.internal.protocol.ContentHandlerFactory
All Implemented Interfaces:
java.net.ContentHandlerFactory

public class ContentHandlerFactory
extends MultiplexingFactory
implements java.net.ContentHandlerFactory

The ContentHandlerFactory is registered with the JVM to provide content handlers to requestors. The ContentHandlerFactory will first look for built-in content handlers. If a built in handler exists, this factory will return null. Otherwise, this ContentHandlerFactory will search the service registry for a maching Content-Handler and, if found, return a proxy for that content handler.


Field Summary
 
Fields inherited from class org.eclipse.osgi.framework.internal.protocol.MultiplexingFactory
adaptor, context, PACKAGEADMINCLASS
 
Constructor Summary
ContentHandlerFactory(BundleContext context, FrameworkAdaptor adaptor)
           
 
Method Summary
 java.net.ContentHandler createContentHandler(java.lang.String contentType)
           
 java.net.ContentHandler createInternalContentHandler(java.lang.String contentType)
           
 java.net.ContentHandler findAuthorizedContentHandler(java.lang.String contentType)
           
 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
 

Constructor Detail

ContentHandlerFactory

public ContentHandlerFactory(BundleContext context,
                             FrameworkAdaptor adaptor)
Method Detail

createContentHandler

public java.net.ContentHandler createContentHandler(java.lang.String contentType)
Specified by:
createContentHandler in interface java.net.ContentHandlerFactory
See Also:
ContentHandlerFactory.createContentHandler(String)

createInternalContentHandler

public java.net.ContentHandler createInternalContentHandler(java.lang.String contentType)

findAuthorizedContentHandler

public java.net.ContentHandler findAuthorizedContentHandler(java.lang.String contentType)

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