net.sf.urlchecker.communication.configurers
Class ClientConfigurer

Package class diagram package ClientConfigurer
java.lang.Object
  extended by net.sf.urlchecker.communication.configurers.ClientConfigurer
All Implemented Interfaces:
Configurer<org.apache.commons.httpclient.HttpClient>

public class ClientConfigurer
extends Object
implements Configurer<org.apache.commons.httpclient.HttpClient>

The ClientConfigurer class for the old jakarta httpClient. Here the client is configured for all the hosts and the proxy provided in the configuration and with preemptive authentication if so is required.

$Id: ClientConfigurer.java 182 2010-12-13 22:51:53Z georgosn $

Version:
$LastChangedRevision: 182 $
Author:
$LastChangedBy: georgosn $

Constructor Summary
ClientConfigurer()
           
 
Method Summary
protected  void configureHosts(org.apache.commons.configuration.XMLConfiguration config, org.apache.commons.httpclient.HttpClient client)
          Configure the hosts.
protected  void configurePreemptive(org.apache.commons.configuration.XMLConfiguration config, org.apache.commons.httpclient.HttpClient client)
          Configure preemptive authentication.
protected  void configureProxy(org.apache.commons.configuration.XMLConfiguration config, org.apache.commons.httpclient.HttpClient client)
          Configure the proxies.
 org.apache.commons.httpclient.HttpClient configureWith(org.apache.commons.configuration.XMLConfiguration config)
          Configure with.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientConfigurer

public ClientConfigurer()
Method Detail

configureHosts

protected void configureHosts(org.apache.commons.configuration.XMLConfiguration config,
                              org.apache.commons.httpclient.HttpClient client)
Configure the hosts.

Parameters:
config - the XML configuration
client - the httpClient

configurePreemptive

protected void configurePreemptive(org.apache.commons.configuration.XMLConfiguration config,
                                   org.apache.commons.httpclient.HttpClient client)
Configure preemptive authentication.

Parameters:
config - the XML configuration
client - the httpClient

configureProxy

protected void configureProxy(org.apache.commons.configuration.XMLConfiguration config,
                              org.apache.commons.httpclient.HttpClient client)
Configure the proxies.

Parameters:
config - the XML configuration
client - the httpClient

configureWith

public org.apache.commons.httpclient.HttpClient configureWith(org.apache.commons.configuration.XMLConfiguration config)
Configure with.

Specified by:
configureWith in interface Configurer<org.apache.commons.httpclient.HttpClient>
Parameters:
config - the XML configuration
Returns:
the t


Copyright © 2010 Nikolaos Georgosopoulos. All Rights Reserved.