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.component.Component, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.parameters.Parameterizable, SourceFactory, org.apache.avalon.framework.thread.ThreadSafe
- 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
- Implements service:
- type=SourceFactory
- Avalon component
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 |
HTTPClientSourceFactory
public HTTPClientSourceFactory()
getSource
public Source getSource(String uri,
Map sourceParams)
throws MalformedURLException,
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:
IOException
- if the source couldn't be created for some reason.
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
Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.