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(org.apache.http.impl.client.HttpClientBuilder builder)
Configures the http client.
|
protected org.apache.http.HttpResponse |
doWebserviceCall(org.apache.http.client.methods.RequestBuilder builder)
Execute the web service call
|
protected RemoteHttpCacheAttributes |
getRemoteHttpCacheAttributes() |
protected abstract void |
postProcessWebserviceCall(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.HttpResponse httpState)
Called after the execute call on the client.
|
protected abstract void |
preProcessWebserviceCall(org.apache.http.client.methods.RequestBuilder requestBuilder)
Called before the execute call on the client.
|
public AbstractHttpClient(RemoteHttpCacheAttributes remoteHttpCacheAttributes)
remoteHttpCacheAttributes
- protected void configureClient(org.apache.http.impl.client.HttpClientBuilder builder)
builder
- client builder to configureprotected final org.apache.http.HttpResponse doWebserviceCall(org.apache.http.client.methods.RequestBuilder builder) throws IOException
builder
- builder for the post requestIOException
- on i/o errorprotected abstract void preProcessWebserviceCall(org.apache.http.client.methods.RequestBuilder requestBuilder) throws IOException
requestBuilder
- http method request builderIOException
protected abstract void postProcessWebserviceCall(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.HttpResponse httpState) throws IOException
request
- http requesthttpState
- result of executionIOException
protected RemoteHttpCacheAttributes getRemoteHttpCacheAttributes()
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.