public class HTTPSenderImpl extends HTTPSender
HTTPSender.HTTPStatusCodeFamilychunked, format, httpVersion, isAllowedRetry, proxyOutSetting| Constructor and Description |
|---|
HTTPSenderImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomHeaders(org.apache.commons.httpclient.HttpMethod method,
org.apache.axis2.context.MessageContext msgContext) |
protected void |
cleanup(org.apache.axis2.context.MessageContext msgContext,
Object httpMmethod) |
protected void |
executeMethod(org.apache.commons.httpclient.HttpClient httpClient,
org.apache.axis2.context.MessageContext msgContext,
URL url,
org.apache.commons.httpclient.HttpMethod method) |
protected org.apache.commons.httpclient.HostConfiguration |
getHostConfiguration(org.apache.commons.httpclient.HttpClient client,
org.apache.axis2.context.MessageContext msgCtx,
URL targetURL)
getting host configuration to support standard http/s, proxy and NTLM
support
|
protected org.apache.commons.httpclient.HttpClient |
getHttpClient(org.apache.axis2.context.MessageContext msgContext) |
protected void |
handleResponse(org.apache.axis2.context.MessageContext msgContext,
Object httpMethodBase)
Used to handle the HTTP Response
|
protected void |
initializeTimeouts(org.apache.axis2.context.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(org.apache.axis2.context.MessageContext msgCtx) |
protected void |
obtainHTTPHeaderInformation(Object httpMethodBase,
org.apache.axis2.context.MessageContext msgContext)
Collect the HTTP header information and set them in the message context
|
protected org.apache.axis2.transport.MessageFormatter |
populateCommonProperties(org.apache.axis2.context.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,
org.apache.axis2.context.MessageContext msgContext) |
protected void |
sendViaDelete(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActiionString)
Used to send a request via HTTP Delete Method
|
protected void |
sendViaGet(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActiionString)
Used to send a request via HTTP Get method
|
protected void |
sendViaPost(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActionString)
Used to send a request via HTTP Post Method
|
protected void |
sendViaPut(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActionString)
Used to send a request via HTTP Put Method
|
protected void |
setAuthenticationInfo(org.apache.commons.httpclient.HttpClient agent,
org.apache.axis2.context.MessageContext msgCtx,
org.apache.commons.httpclient.HostConfiguration config) |
protected void |
setTimeouts(org.apache.axis2.context.MessageContext msgContext,
org.apache.commons.httpclient.HttpMethod httpMethod)
This is used to get the dynamically set time out values from the message
context.
|
getHTTPStatusCodeFamily, sendsetChunked, setFormat, setHttpVersionprotected void sendViaGet(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActiionString)
throws org.apache.axis2.AxisFault
sendViaGet in class HTTPSendermsgContext - - The MessageContext of the messageurl - - The target URLsoapActiionString - - The soapAction string of the requestorg.apache.axis2.AxisFault - - Thrown in case an exception occursprotected void cleanup(org.apache.axis2.context.MessageContext msgContext,
Object httpMmethod)
cleanup in class HTTPSenderprotected void sendViaDelete(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActiionString)
throws org.apache.axis2.AxisFault
sendViaDelete in class HTTPSendermsgContext - - The MessageContext of the messageurl - - The target URLsoapActiionString - - The soapAction string of the requestorg.apache.axis2.AxisFault - - Thrown in case an exception occursprotected void sendViaPost(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActionString)
throws org.apache.axis2.AxisFault
sendViaPost in class HTTPSendermsgContext - - The MessageContext of the messageurl - - The target URLsoapActionString - - The soapAction string of the requestorg.apache.axis2.AxisFault - - Thrown in case an exception occursprotected void sendViaPut(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActionString)
throws org.apache.axis2.AxisFault
sendViaPut in class HTTPSendermsgContext - - The MessageContext of the messageurl - - The target URLsoapActionString - - The soapAction string of the requestorg.apache.axis2.AxisFault - - Thrown in case an exception occursprotected void handleResponse(org.apache.axis2.context.MessageContext msgContext,
Object httpMethodBase)
throws IOException
handleResponse in class HTTPSendermsgContext - - The MessageContext of the messagemethod - - The HTTP method usedIOException - - Thrown in case an exception occursprotected void obtainHTTPHeaderInformation(Object httpMethodBase, org.apache.axis2.context.MessageContext msgContext) throws org.apache.axis2.AxisFault
method - HttpMethodBase from which to get informationmsgContext - the MessageContext in which to place the information... OR
NOT!org.apache.axis2.AxisFault - if problems occurprotected void processResponse(org.apache.commons.httpclient.HttpMethodBase httpMethod,
org.apache.axis2.context.MessageContext msgContext)
throws IOException
IOExceptionprotected org.apache.commons.httpclient.HostConfiguration getHostConfiguration(org.apache.commons.httpclient.HttpClient client,
org.apache.axis2.context.MessageContext msgCtx,
URL targetURL)
throws org.apache.axis2.AxisFault
client - active HttpClientmsgCtx - active MessageContexttargetURL - the target URLorg.apache.axis2.AxisFault - if problems occurprotected boolean isAuthenticationEnabled(org.apache.axis2.context.MessageContext msgCtx)
protected void setAuthenticationInfo(org.apache.commons.httpclient.HttpClient agent,
org.apache.axis2.context.MessageContext msgCtx,
org.apache.commons.httpclient.HostConfiguration config)
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultprotected org.apache.axis2.transport.MessageFormatter populateCommonProperties(org.apache.axis2.context.MessageContext msgContext,
URL url,
org.apache.commons.httpclient.HttpMethodBase httpMethod,
org.apache.commons.httpclient.HttpClient httpClient,
String soapActionString)
throws org.apache.axis2.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 messageorg.apache.axis2.AxisFault - - Thrown in case an exception occursprotected void initializeTimeouts(org.apache.axis2.context.MessageContext msgContext,
org.apache.commons.httpclient.HttpClient httpClient)
msgContext - the active MessageContexthttpClient - protected void setTimeouts(org.apache.axis2.context.MessageContext msgContext,
org.apache.commons.httpclient.HttpMethod httpMethod)
msgContext - the active MessageContexthttpMethod - methodprotected org.apache.commons.httpclient.HttpClient getHttpClient(org.apache.axis2.context.MessageContext msgContext)
protected void executeMethod(org.apache.commons.httpclient.HttpClient httpClient,
org.apache.axis2.context.MessageContext msgContext,
URL url,
org.apache.commons.httpclient.HttpMethod method)
throws IOException
IOExceptionpublic void addCustomHeaders(org.apache.commons.httpclient.HttpMethod method,
org.apache.axis2.context.MessageContext msgContext)
Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.