org.apache.excalibur.source.impl
Class HTTPClientSourceFactory
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.excalibur.source.impl.HTTPClientSourceFactory
- All Implemented Interfaces:
- org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.parameters.Parameterizable, org.apache.avalon.framework.thread.ThreadSafe, SourceFactory
- Direct Known Subclasses:
- HTTPSClientSourceFactory
public class HTTPClientSourceFactory
- extends org.apache.avalon.framework.logger.AbstractLogEnabled
- implements SourceFactory, org.apache.avalon.framework.parameters.Parameterizable, org.apache.avalon.framework.thread.ThreadSafe
HTTPClientSource Factory class.
- Version:
- CVS $Id: HTTPClientSourceFactory.java,v 1.4 2004/02/28 11:47:24 cziegeler Exp $
- Author:
- Avalon Development Team
|
Field Summary |
private org.apache.avalon.framework.parameters.Parameters |
m_parameters
Configuration information. |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_parameters
private org.apache.avalon.framework.parameters.Parameters m_parameters
- Configuration information.
HTTPClientSourceFactory
public HTTPClientSourceFactory()
getSource
public Source getSource(java.lang.String uri,
java.util.Map sourceParams)
throws java.net.MalformedURLException,
java.io.IOException
- Creates a
HTTPClientSource instance.
- Specified by:
getSource in interface SourceFactory
- Parameters:
uri - The URI to resolve - this URI includes the scheme.sourceParams - additionnal named parameters (optionnal and can be null)
that drive the creation of the Source object. Each implementation
must specify what parameters it accepts.
- Returns:
- the created source object.
- Throws:
java.io.IOException - if the source couldn't be created for some reason.
java.net.MalformedURLException
parameterize
public void parameterize(org.apache.avalon.framework.parameters.Parameters params)
throws org.apache.avalon.framework.parameters.ParameterException
- Parameterize this
SourceFactory.
- Specified by:
parameterize in interface org.apache.avalon.framework.parameters.Parameterizable
- Parameters:
params - Parameters instance
- Throws:
org.apache.avalon.framework.parameters.ParameterException - if an error occurs
release
public void release(Source source)
- Releases the given
Source object.
- Specified by:
release in interface SourceFactory
- Parameters:
source - Source object to be released