org.apache.excalibur.source.impl
Class HTTPClientSourceFactory

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.excalibur.source.impl.HTTPClientSourceFactory
All Implemented Interfaces:
LogEnabled, org.apache.avalon.framework.parameters.Parameterizable, org.apache.avalon.framework.thread.ThreadSafe, SourceFactory
Direct Known Subclasses:
HTTPSClientSourceFactory

public class HTTPClientSourceFactory
extends 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
 
Fields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE
 
Constructor Summary
HTTPClientSourceFactory()
           
 
Method Summary
 Source getSource(String uri, Map sourceParams)
          Creates a HTTPClientSource instance.
 void parameterize(org.apache.avalon.framework.parameters.Parameters params)
          Parameterize this SourceFactory.
 void release(Source source)
          Releases the given Source object.
 
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
 

Constructor Detail

HTTPClientSourceFactory

public HTTPClientSourceFactory()
Method Detail

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-2012 The Apache Software Foundation. All Rights Reserved.