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.http.client.methods.HttpRequestBase method,
org.apache.axis2.context.MessageContext msgContext) |
protected void |
cleanup(org.apache.axis2.context.MessageContext msgContext,
Object httpResponse) |
protected org.apache.http.HttpResponse |
executeMethod(org.apache.http.impl.client.AbstractHttpClient httpClient,
org.apache.axis2.context.MessageContext msgContext,
URL url,
org.apache.http.client.methods.HttpRequestBase method) |
protected org.apache.http.HttpHost |
getHostConfiguration(org.apache.http.impl.client.AbstractHttpClient client,
org.apache.axis2.context.MessageContext msgCtx,
URL targetURL)
getting host configuration to support standard http/s, proxy and NTLM
support
|
protected org.apache.http.impl.client.AbstractHttpClient |
getHttpClient(org.apache.axis2.context.MessageContext msgContext) |
protected void |
handleResponse(org.apache.axis2.context.MessageContext msgContext,
Object httpResponse)
Used to handle the HTTP Response
|
protected void |
initializeTimeouts(org.apache.axis2.context.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(org.apache.axis2.context.MessageContext msgCtx) |
protected void |
obtainHTTPHeaderInformation(Object httpResponse,
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.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,
org.apache.axis2.context.MessageContext msgContext) |
protected void |
sendViaDelete(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActionString)
Used to send a request via HTTP Delete Method
|
protected void |
sendViaGet(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActionString)
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.http.impl.client.AbstractHttpClient agent,
org.apache.axis2.context.MessageContext msgCtx) |
protected void |
setTimeouts(org.apache.axis2.context.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, sendsetChunked, setFormat, setHttpVersionprotected void sendViaGet(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActionString)
throws org.apache.axis2.AxisFault
sendViaGet 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 cleanup(org.apache.axis2.context.MessageContext msgContext,
Object httpResponse)
cleanup in class HTTPSenderprotected void sendViaDelete(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActionString)
throws org.apache.axis2.AxisFault
sendViaDelete 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 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 httpResponse)
throws IOException
handleResponse in class HTTPSendermsgContext - - The MessageContext of the message- - The HTTP method usedIOException - - Thrown in case an exception occursprotected void obtainHTTPHeaderInformation(Object httpResponse, org.apache.axis2.context.MessageContext msgContext) throws org.apache.axis2.AxisFault
httpResponse - which holds the header informationmsgContext - the MessageContext in which to place the information... OR
NOT!org.apache.axis2.AxisFault - if problems occurprotected void processResponse(org.apache.http.HttpResponse response,
org.apache.axis2.context.MessageContext msgContext)
throws IOException
IOExceptionprotected org.apache.http.HttpHost getHostConfiguration(org.apache.http.impl.client.AbstractHttpClient 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.http.impl.client.AbstractHttpClient agent,
org.apache.axis2.context.MessageContext msgCtx)
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.http.client.methods.HttpRequestBase httpMethod,
org.apache.http.impl.client.AbstractHttpClient 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.http.impl.client.AbstractHttpClient httpClient)
msgContext - the active MessageContexthttpClient - protected void setTimeouts(org.apache.axis2.context.MessageContext msgContext,
org.apache.http.client.methods.HttpRequestBase httpMethod)
msgContext - the active MessageContexthttpMethod - methodprotected org.apache.http.impl.client.AbstractHttpClient getHttpClient(org.apache.axis2.context.MessageContext msgContext)
protected org.apache.http.HttpResponse executeMethod(org.apache.http.impl.client.AbstractHttpClient httpClient,
org.apache.axis2.context.MessageContext msgContext,
URL url,
org.apache.http.client.methods.HttpRequestBase method)
throws IOException
IOExceptionpublic void addCustomHeaders(org.apache.http.client.methods.HttpRequestBase method,
org.apache.axis2.context.MessageContext msgContext)
Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.