org.apache.excalibur.source.impl
Class HTTPSClientSourceFactory

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

public class HTTPSClientSourceFactory
extends HTTPClientSourceFactory

HTTPClientSource Factory class.

Version:
CVS $Id: HTTPSClientSourceFactory.java,v 1.5 2004/02/28 11:47:24 cziegeler Exp $
Author:
Avalon Development Team

Field Summary
static java.lang.String HTTPS
          HTTPS constant.
static java.lang.String SOCKET_FACTORY
          SSL socket factory.
static java.lang.String SSL_PROVIDER
          SSL implementation provider.
 
Fields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE
 
Constructor Summary
HTTPSClientSourceFactory()
           
 
Method Summary
private  java.lang.Object getInstance(java.lang.String className)
          Helper method to create a single instance from a class name.
 void parameterize(org.apache.avalon.framework.parameters.Parameters params)
          Parameterize this SourceFactory.
private  void setProvider(org.apache.avalon.framework.parameters.Parameters params)
          Method to set up the SSL provider for this factory instance.
private  void setSocketFactory(org.apache.avalon.framework.parameters.Parameters params)
          Method to set up the SSL socket factory for this source factory instance.
 
Methods inherited from class org.apache.excalibur.source.impl.HTTPClientSourceFactory
getSource, release
 
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
 

Field Detail

SSL_PROVIDER

public static final java.lang.String SSL_PROVIDER
SSL implementation provider.

See Also:
Constant Field Values

SOCKET_FACTORY

public static final java.lang.String SOCKET_FACTORY
SSL socket factory.

See Also:
Constant Field Values

HTTPS

public static final java.lang.String HTTPS
HTTPS constant.

See Also:
Constant Field Values
Constructor Detail

HTTPSClientSourceFactory

public HTTPSClientSourceFactory()
Method Detail

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
Overrides:
parameterize in class HTTPClientSourceFactory
Parameters:
params - Parameters instance
Throws:
org.apache.avalon.framework.parameters.ParameterException - if an error occurs

setProvider

private void setProvider(org.apache.avalon.framework.parameters.Parameters params)
                  throws org.apache.avalon.framework.parameters.ParameterException
Method to set up the SSL provider for this factory instance.

Parameters:
params - configuration Parameters
Throws:
org.apache.avalon.framework.parameters.ParameterException - if an error occurs

setSocketFactory

private void setSocketFactory(org.apache.avalon.framework.parameters.Parameters params)
                       throws org.apache.avalon.framework.parameters.ParameterException
Method to set up the SSL socket factory for this source factory instance.

Parameters:
params - configuration Parameters
Throws:
org.apache.avalon.framework.parameters.ParameterException - if an error occurs

getInstance

private java.lang.Object getInstance(java.lang.String className)
                              throws org.apache.avalon.framework.parameters.ParameterException
Helper method to create a single instance from a class name. Assumes given class name has a no-parameter constructor.

Parameters:
className - class name to instantiate
Returns:
instantiated class
Throws:
org.apache.avalon.framework.parameters.ParameterException - if an error occurs