public class HTTPSenderImpl extends HTTPSender
HTTPSender.HTTPStatusCodeFamily
chunked, format, httpVersion, isAllowedRetry, proxyOutSetting
Constructor and Description |
---|
HTTPSenderImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addCustomHeaders(org.apache.http.client.methods.HttpRequestBase method,
MessageContext msgContext) |
protected void |
cleanup(MessageContext msgContext,
Object httpResponse) |
protected org.apache.http.HttpResponse |
executeMethod(org.apache.http.impl.client.AbstractHttpClient httpClient,
MessageContext msgContext,
URL url,
org.apache.http.client.methods.HttpRequestBase method) |
protected org.apache.http.HttpHost |
getHostConfiguration(org.apache.http.impl.client.AbstractHttpClient client,
MessageContext msgCtx,
URL targetURL)
getting host configuration to support standard http/s, proxy and NTLM
support
|
protected org.apache.http.impl.client.AbstractHttpClient |
getHttpClient(MessageContext msgContext) |
protected void |
handleResponse(MessageContext msgContext,
Object httpResponse)
Used to handle the HTTP Response
|
protected void |
initializeTimeouts(MessageContext msgContext,
org.apache.http.impl.client.AbstractHttpClient httpClient)
This is used to get the dynamically set time out values from the message
context.
|
protected boolean |
isAuthenticationEnabled(MessageContext msgCtx) |
protected void |
obtainHTTPHeaderInformation(Object httpResponse,
MessageContext msgContext)
Collect the HTTP header information and set them in the message context
|
protected MessageFormatter |
populateCommonProperties(MessageContext msgContext,
URL url,
org.apache.http.client.methods.HttpRequestBase httpMethod,
org.apache.http.impl.client.AbstractHttpClient httpClient,
String soapActionString)
Method used to copy all the common properties
|
protected void |
processResponse(org.apache.http.HttpResponse response,
MessageContext msgContext) |
protected void |
sendViaDelete(MessageContext msgContext,
URL url,
String soapActionString)
Used to send a request via HTTP Delete Method
|
protected void |
sendViaGet(MessageContext msgContext,
URL url,
String soapActionString)
Used to send a request via HTTP Get method
|
protected void |
sendViaPost(MessageContext msgContext,
URL url,
String soapActionString)
Used to send a request via HTTP Post Method
|
protected void |
sendViaPut(MessageContext msgContext,
URL url,
String soapActionString)
Used to send a request via HTTP Put Method
|
protected void |
setAuthenticationInfo(org.apache.http.impl.client.AbstractHttpClient agent,
MessageContext msgCtx) |
protected void |
setTimeouts(MessageContext msgContext,
org.apache.http.client.methods.HttpRequestBase httpMethod)
This is used to get the dynamically set time out values from the message
context.
|
getHTTPStatusCodeFamily, send
setChunked, setFormat, setHttpVersion
protected void sendViaGet(MessageContext msgContext, URL url, String soapActionString) throws AxisFault
sendViaGet
in class HTTPSender
msgContext
- - The MessageContext of the messageurl
- - The target URLsoapActionString
- - The soapAction string of the requestAxisFault
- - Thrown in case an exception occursprotected void cleanup(MessageContext msgContext, Object httpResponse)
cleanup
in class HTTPSender
protected void sendViaDelete(MessageContext msgContext, URL url, String soapActionString) throws AxisFault
sendViaDelete
in class HTTPSender
msgContext
- - The MessageContext of the messageurl
- - The target URLsoapActionString
- - The soapAction string of the requestAxisFault
- - Thrown in case an exception occursprotected void sendViaPost(MessageContext msgContext, URL url, String soapActionString) throws AxisFault
sendViaPost
in class HTTPSender
msgContext
- - The MessageContext of the messageurl
- - The target URLsoapActionString
- - The soapAction string of the requestAxisFault
- - Thrown in case an exception occursprotected void sendViaPut(MessageContext msgContext, URL url, String soapActionString) throws AxisFault
sendViaPut
in class HTTPSender
msgContext
- - The MessageContext of the messageurl
- - The target URLsoapActionString
- - The soapAction string of the requestAxisFault
- - Thrown in case an exception occursprotected void handleResponse(MessageContext msgContext, Object httpResponse) throws IOException
handleResponse
in class HTTPSender
msgContext
- - The MessageContext of the message-
- The HTTP method usedIOException
- - Thrown in case an exception occursprotected void obtainHTTPHeaderInformation(Object httpResponse, MessageContext msgContext) throws AxisFault
httpResponse
- which holds the header informationmsgContext
- the MessageContext in which to place the information... OR
NOT!AxisFault
- if problems occurprotected void processResponse(org.apache.http.HttpResponse response, MessageContext msgContext) throws IOException
IOException
protected org.apache.http.HttpHost getHostConfiguration(org.apache.http.impl.client.AbstractHttpClient client, MessageContext msgCtx, URL targetURL) throws AxisFault
client
- active HttpClientmsgCtx
- active MessageContexttargetURL
- the target URLAxisFault
- if problems occurprotected boolean isAuthenticationEnabled(MessageContext msgCtx)
protected void setAuthenticationInfo(org.apache.http.impl.client.AbstractHttpClient agent, MessageContext msgCtx) throws AxisFault
AxisFault
protected MessageFormatter populateCommonProperties(MessageContext msgContext, URL url, org.apache.http.client.methods.HttpRequestBase httpMethod, org.apache.http.impl.client.AbstractHttpClient httpClient, String soapActionString) throws AxisFault
msgContext
- - The messageContext of the request messageurl
- - The target URLhttpMethod
- - The http method used to send the requesthttpClient
- - The httpclient used to send the requestsoapActionString
- - The soap action atring of the request messageAxisFault
- - Thrown in case an exception occursprotected void initializeTimeouts(MessageContext msgContext, org.apache.http.impl.client.AbstractHttpClient httpClient)
msgContext
- the active MessageContexthttpClient
- protected void setTimeouts(MessageContext msgContext, org.apache.http.client.methods.HttpRequestBase httpMethod)
msgContext
- the active MessageContexthttpMethod
- methodprotected org.apache.http.impl.client.AbstractHttpClient getHttpClient(MessageContext msgContext)
protected org.apache.http.HttpResponse executeMethod(org.apache.http.impl.client.AbstractHttpClient httpClient, MessageContext msgContext, URL url, org.apache.http.client.methods.HttpRequestBase method) throws IOException
IOException
public void addCustomHeaders(org.apache.http.client.methods.HttpRequestBase method, MessageContext msgContext)
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.