public abstract class AbstractHttpClient extends Object
This is abstract because it can do anything. Child classes can overwrite whatever they want.
| Constructor and Description |
|---|
AbstractHttpClient(RemoteHttpCacheAttributes remoteHttpCacheAttributes)
Sets the default Properties File and Heading, and creates the HttpClient and connection
manager.
|
| Modifier and Type | Method and Description |
|---|---|
protected 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.
|
protected RemoteHttpCacheAttributes |
getRemoteHttpCacheAttributes() |
protected abstract void |
postProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post,
org.apache.commons.httpclient.HttpState httpState)
Called after the executeMethod on the client.
|
protected abstract org.apache.commons.httpclient.HttpState |
preProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post)
Called before the executeMethod on the client.
|
public AbstractHttpClient(RemoteHttpCacheAttributes remoteHttpCacheAttributes)
remoteHttpCacheAttributes - protected 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 errorprotected abstract org.apache.commons.httpclient.HttpState preProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post) throws IOException
post - http methodIOExceptionprotected abstract void postProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post, org.apache.commons.httpclient.HttpState httpState) throws IOException
post - http methodhttpState - stateIOExceptionprotected RemoteHttpCacheAttributes getRemoteHttpCacheAttributes()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.