|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.remote.http.client.AbstractHttpClient
public abstract class AbstractHttpClient
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. |
protected void |
doWebserviceCall(org.apache.commons.httpclient.HttpMethod post)
Extracted method that can be overwritten to do additional things to the post before the call is made. |
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager |
getConnectionManager()
|
RemoteHttpCacheAttributes |
getRemoteHttpCacheAttributes()
|
abstract void |
postProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post,
org.apache.commons.httpclient.HttpState httpState)
Called after the executeMethod on the client. |
abstract org.apache.commons.httpclient.HttpState |
preProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post)
Called before the executeMethod on the client. |
void |
setConnectionManager(org.apache.commons.httpclient.MultiThreadedHttpConnectionManager connectionManager)
|
void |
setRemoteHttpCacheAttributes(RemoteHttpCacheAttributes remoteHttpCacheAttributes)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractHttpClient(RemoteHttpCacheAttributes remoteHttpCacheAttributes)
remoteHttpCacheAttributes - | Method Detail |
|---|
public void configureClient()
protected final void doWebserviceCall(org.apache.commons.httpclient.HttpMethod post)
throws IOException
post - the post that is about to get executed.
IOException - on i/o error
public abstract org.apache.commons.httpclient.HttpState preProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post)
throws IOException
post - http method
IOException
public abstract void postProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post,
org.apache.commons.httpclient.HttpState httpState)
throws IOException
post - http methodhttpState - state
IOExceptionpublic org.apache.commons.httpclient.MultiThreadedHttpConnectionManager getConnectionManager()
public void setConnectionManager(org.apache.commons.httpclient.MultiThreadedHttpConnectionManager connectionManager)
connectionManager - The connectionManager to set.public void setRemoteHttpCacheAttributes(RemoteHttpCacheAttributes remoteHttpCacheAttributes)
remoteHttpCacheAttributes - the remoteHttpCacheAttributes to setpublic RemoteHttpCacheAttributes getRemoteHttpCacheAttributes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||