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:
- Component, LogEnabled, Parameterizable, SourceFactory, ThreadSafe
- Direct Known Subclasses:
- HTTPSClientSourceFactory
- public class HTTPClientSourceFactory
- extends AbstractLogEnabled
- implements SourceFactory, Parameterizable, ThreadSafe
HTTPClientSource
Factory class.
- Version:
- CVS $Id: HTTPClientSourceFactory.java,v 1.4 2004/02/28 11:47:24 cziegeler Exp $
- Author:
- Avalon Development Team
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(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(Parameters params)
throws ParameterException
- Parameterize this
SourceFactory
.
- Specified by:
parameterize
in interface Parameterizable
- Parameters:
params
- Parameters
instance
- Throws:
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.