public abstract class AbstractHTTPSender extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
ANONYMOUS |
protected boolean |
chunked |
protected org.apache.axiom.om.OMOutputFormat |
format |
protected String |
httpVersion |
protected boolean |
isAllowedRetry
isAllowedRetry will be using to check where the
retry should be allowed or not.
|
protected static String |
PROTOCOL_HTTP |
protected static String |
PROTOCOL_HTTPS |
protected static String |
PROXY_HOST_NAME |
protected static String |
PROXY_PORT |
protected TransportOutDescription |
proxyOutSetting
proxydiscription
|
Constructor and Description |
---|
AbstractHTTPSender() |
Modifier and Type | Method and Description |
---|---|
void |
addCustomHeaders(org.apache.commons.httpclient.HttpMethod method,
MessageContext msgContext) |
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 |
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(org.apache.commons.httpclient.HttpMethodBase method,
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) |
abstract void |
send(MessageContext msgContext,
URL url,
String soapActionString) |
protected void |
setAuthenticationInfo(org.apache.commons.httpclient.HttpClient agent,
MessageContext msgCtx,
org.apache.commons.httpclient.HostConfiguration config) |
void |
setChunked(boolean chunked) |
void |
setFormat(org.apache.axiom.om.OMOutputFormat format) |
void |
setHttpVersion(String version) |
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.
|
protected static final String ANONYMOUS
protected static final String PROXY_HOST_NAME
protected static final String PROXY_PORT
protected boolean chunked
protected String httpVersion
protected static final String PROTOCOL_HTTP
protected static final String PROTOCOL_HTTPS
protected TransportOutDescription proxyOutSetting
protected org.apache.axiom.om.OMOutputFormat format
protected boolean isAllowedRetry
public void setChunked(boolean chunked)
protected void obtainHTTPHeaderInformation(org.apache.commons.httpclient.HttpMethodBase method, 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
public abstract void send(MessageContext msgContext, URL url, String soapActionString) 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
- methodpublic void setFormat(org.apache.axiom.om.OMOutputFormat format)
protected 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 © 2004–2016 The Apache Software Foundation. All rights reserved.