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.commons.httpclient.HttpMethod method,
MessageContext msgContext) |
protected void |
cleanup(MessageContext msgContext,
Object httpMmethod) |
protected void |
executeMethod(org.apache.commons.httpclient.HttpClient httpClient,
MessageContext msgContext,
URL url,
org.apache.commons.httpclient.HttpMethod method) |
protected org.apache.commons.httpclient.HostConfiguration |
getHostConfiguration(org.apache.commons.httpclient.HttpClient client,
MessageContext msgCtx,
URL targetURL)
getting host configuration to support standard http/s, proxy and NTLM
support
|
protected org.apache.commons.httpclient.HttpClient |
getHttpClient(MessageContext msgContext) |
protected void |
handleResponse(MessageContext msgContext,
Object httpMethodBase)
Used to handle the HTTP Response
|
protected void |
initializeTimeouts(MessageContext msgContext,
org.apache.commons.httpclient.HttpClient 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 httpMethodBase,
MessageContext msgContext)
Collect the HTTP header information and set them in the message context
|
protected MessageFormatter |
populateCommonProperties(MessageContext msgContext,
URL url,
org.apache.commons.httpclient.HttpMethodBase httpMethod,
org.apache.commons.httpclient.HttpClient httpClient,
String soapActionString)
Method used to copy all the common properties
|
protected void |
processResponse(org.apache.commons.httpclient.HttpMethodBase httpMethod,
MessageContext msgContext) |
protected void |
sendViaDelete(MessageContext msgContext,
URL url,
String soapActiionString)
Used to send a request via HTTP Delete Method
|
protected void |
sendViaGet(MessageContext msgContext,
URL url,
String soapActiionString)
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.commons.httpclient.HttpClient agent,
MessageContext msgCtx,
org.apache.commons.httpclient.HostConfiguration config) |
protected void |
setTimeouts(MessageContext msgContext,
org.apache.commons.httpclient.HttpMethod 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 soapActiionString) throws AxisFault
sendViaGet
in class HTTPSender
msgContext
- - The MessageContext of the messageurl
- - The target URLsoapActiionString
- - The soapAction string of the requestAxisFault
- - Thrown in case an exception occursprotected void cleanup(MessageContext msgContext, Object httpMmethod)
cleanup
in class HTTPSender
protected void sendViaDelete(MessageContext msgContext, URL url, String soapActiionString) throws AxisFault
sendViaDelete
in class HTTPSender
msgContext
- - The MessageContext of the messageurl
- - The target URLsoapActiionString
- - 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 httpMethodBase) throws IOException
handleResponse
in class HTTPSender
msgContext
- - The MessageContext of the messagemethod
- - The HTTP method usedIOException
- - Thrown in case an exception occursprotected void obtainHTTPHeaderInformation(Object httpMethodBase, MessageContext msgContext) throws AxisFault
method
- HttpMethodBase from which to get informationmsgContext
- the MessageContext in which to place the information... OR
NOT!AxisFault
- if problems occurprotected void processResponse(org.apache.commons.httpclient.HttpMethodBase httpMethod, MessageContext msgContext) throws IOException
IOException
protected org.apache.commons.httpclient.HostConfiguration getHostConfiguration(org.apache.commons.httpclient.HttpClient 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.commons.httpclient.HttpClient agent, MessageContext msgCtx, org.apache.commons.httpclient.HostConfiguration config) throws AxisFault
AxisFault
protected MessageFormatter populateCommonProperties(MessageContext msgContext, URL url, org.apache.commons.httpclient.HttpMethodBase httpMethod, org.apache.commons.httpclient.HttpClient 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.commons.httpclient.HttpClient httpClient)
msgContext
- the active MessageContexthttpClient
- protected void setTimeouts(MessageContext msgContext, org.apache.commons.httpclient.HttpMethod httpMethod)
msgContext
- the active MessageContexthttpMethod
- methodprotected org.apache.commons.httpclient.HttpClient getHttpClient(MessageContext msgContext)
protected void executeMethod(org.apache.commons.httpclient.HttpClient httpClient, MessageContext msgContext, URL url, org.apache.commons.httpclient.HttpMethod method) throws IOException
IOException
public void addCustomHeaders(org.apache.commons.httpclient.HttpMethod method, MessageContext msgContext)
Copyright © The Apache Software Foundation. All Rights Reserved.