org.apache.excalibur.source.impl
Class HTTPClientSourceFactory

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.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

Field Summary
 
Fields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE
 
Constructor Summary
HTTPClientSourceFactory()
           
 
Method Summary
 Source getSource(java.lang.String uri, java.util.Map sourceParams)
          Creates a HTTPClientSource instance.
 void parameterize(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(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.