public abstract class AbstractHttpClient extends Object
This is abstract because it can't 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 |
---|---|
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) |
public AbstractHttpClient(RemoteHttpCacheAttributes remoteHttpCacheAttributes)
remoteHttpCacheAttributes
- 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 errorpublic abstract org.apache.commons.httpclient.HttpState preProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post) throws IOException
post
- http methodIOException
public abstract void postProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post, org.apache.commons.httpclient.HttpState httpState) throws IOException
post
- http methodhttpState
- stateIOException
public 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()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.