org.apache.commons.jnet
Class URLStreamHandlerFactoryWrapper

java.lang.Object
  extended by org.apache.commons.jnet.ParentAwareURLStreamHandlerFactory
      extended by org.apache.commons.jnet.URLStreamHandlerFactoryWrapper
All Implemented Interfaces:
URLStreamHandlerFactory

public class URLStreamHandlerFactoryWrapper
extends ParentAwareURLStreamHandlerFactory

This is a wrapper to make a url stream handler factory a parent aware url stream handler factory.


Field Summary
protected  URLStreamHandlerFactory wrapper
           
 
Fields inherited from class org.apache.commons.jnet.ParentAwareURLStreamHandlerFactory
parentFactory
 
Constructor Summary
URLStreamHandlerFactoryWrapper(URLStreamHandlerFactory f)
           
 
Method Summary
protected  URLStreamHandler create(String protocol)
          This method can be overwritten by subclasses to instantiate url stream handlers for the given protocol.
 
Methods inherited from class org.apache.commons.jnet.ParentAwareURLStreamHandlerFactory
createURLStreamHandler, getParent, setParentFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wrapper

protected final URLStreamHandlerFactory wrapper
Constructor Detail

URLStreamHandlerFactoryWrapper

public URLStreamHandlerFactoryWrapper(URLStreamHandlerFactory f)
Method Detail

create

protected URLStreamHandler create(String protocol)
Description copied from class: ParentAwareURLStreamHandlerFactory
This method can be overwritten by subclasses to instantiate url stream handlers for the given protocol.

Specified by:
create in class ParentAwareURLStreamHandlerFactory
Parameters:
protocol - The protocol.
Returns:
A url stream handler for the protocol or null.
See Also:
ParentAwareURLStreamHandlerFactory.create(java.lang.String)


Copyright 2007-2008 The Apache Software Foundation. All Rights Reserved.