org.apache.jcs.auxiliary.remote.http.client
Class AbstractHttpClient

java.lang.Object
  extended by org.apache.jcs.auxiliary.remote.http.client.AbstractHttpClient
Direct Known Subclasses:
RemoteHttpCacheDispatcher

public abstract class AbstractHttpClient
extends java.lang.Object

This class simply configures the http multithreaded connection manager.

This is abstract because it can't do anything. Child classes can overwrite whatever they want.


Constructor Summary
AbstractHttpClient(RemoteHttpCacheAttributes remoteHttpCacheAttributes)
          Sets the default Properties File and Heading, and creates the HttpClient and connection manager.
 
Method Summary
 void configureClient()
          Configures the http client.
 org.apache.commons.httpclient.MultiThreadedHttpConnectionManager getConnectionManager()
           
 org.apache.commons.httpclient.HttpClient getHttpClient()
           
 RemoteHttpCacheAttributes getRemoteHttpCacheAttributes()
           
 void setConnectionManager(org.apache.commons.httpclient.MultiThreadedHttpConnectionManager connectionManager)
           
 void setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
           
 void setRemoteHttpCacheAttributes(RemoteHttpCacheAttributes remoteHttpCacheAttributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHttpClient

public AbstractHttpClient(RemoteHttpCacheAttributes remoteHttpCacheAttributes)
Sets the default Properties File and Heading, and creates the HttpClient and connection manager.

Parameters:
remoteHttpCacheAttributes -
Method Detail

configureClient

public void configureClient()
Configures the http client.


getHttpClient

public org.apache.commons.httpclient.HttpClient getHttpClient()
Returns:
Returns the httpClient.

setHttpClient

public void setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
Parameters:
httpClient - The httpClient to set.

getConnectionManager

public org.apache.commons.httpclient.MultiThreadedHttpConnectionManager getConnectionManager()
Returns:
Returns the connectionManager.

setConnectionManager

public void setConnectionManager(org.apache.commons.httpclient.MultiThreadedHttpConnectionManager connectionManager)
Parameters:
connectionManager - The connectionManager to set.

setRemoteHttpCacheAttributes

public void setRemoteHttpCacheAttributes(RemoteHttpCacheAttributes remoteHttpCacheAttributes)
Parameters:
remoteHttpCacheAttributes - the remoteHttpCacheAttributes to set

getRemoteHttpCacheAttributes

public RemoteHttpCacheAttributes getRemoteHttpCacheAttributes()
Returns:
the remoteHttpCacheAttributes


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.