org.apache.axis2.transport.http
Class AbstractHTTPSender
java.lang.Object
org.apache.axis2.transport.http.AbstractHTTPSender
- Direct Known Subclasses:
- RESTSender, SOAPOverHTTPSender
- public abstract class AbstractHTTPSender
- extends Object
Method Summary |
protected void |
configProxyAuthentication(org.apache.commons.httpclient.HttpClient client,
TransportOutDescription proxySetting,
org.apache.commons.httpclient.HostConfiguration config,
MessageContext msgCtx)
Helper method to Proxy and NTLM authentication |
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 |
getTimeoutValues(MessageContext msgContext)
This is used to get the dynamically set time out values from the
message context. |
protected void |
obtainHTTPHeaderInformation(org.apache.commons.httpclient.HttpMethodBase method,
MessageContext msgContext)
Collect the HTTP header information and set them in the message context |
protected void |
processResponse(org.apache.commons.httpclient.HttpMethodBase httpMethod,
MessageContext msgContext)
|
abstract void |
send(MessageContext msgContext,
org.apache.axiom.om.OMElement dataout,
URL url,
String soapActionString)
|
void |
setChunked(boolean chunked)
|
void |
setFormat(org.apache.axiom.om.OMOutputFormat format)
|
void |
setHttpVersion(String version)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ANONYMOUS
protected static final String ANONYMOUS
- See Also:
- Constant Field Values
PROXY_HOST_NAME
protected static final String PROXY_HOST_NAME
- See Also:
- Constant Field Values
PROXY_PORT
protected static final String PROXY_PORT
- See Also:
- Constant Field Values
chunked
protected boolean chunked
httpVersion
protected String httpVersion
proxyOutSetting
protected TransportOutDescription proxyOutSetting
- proxydiscription
format
protected org.apache.axiom.om.OMOutputFormat format
AbstractHTTPSender
public AbstractHTTPSender()
setChunked
public void setChunked(boolean chunked)
setHttpVersion
public void setHttpVersion(String version)
throws AxisFault
- Throws:
AxisFault
configProxyAuthentication
protected void configProxyAuthentication(org.apache.commons.httpclient.HttpClient client,
TransportOutDescription proxySetting,
org.apache.commons.httpclient.HostConfiguration config,
MessageContext msgCtx)
throws AxisFault
- Helper method to Proxy and NTLM authentication
- Parameters:
client
- proxySetting
- config
-
- Throws:
AxisFault
obtainHTTPHeaderInformation
protected void obtainHTTPHeaderInformation(org.apache.commons.httpclient.HttpMethodBase method,
MessageContext msgContext)
- Collect the HTTP header information and set them in the message context
- Parameters:
method
- msgContext
-
processResponse
protected void processResponse(org.apache.commons.httpclient.HttpMethodBase httpMethod,
MessageContext msgContext)
throws IOException
- Throws:
IOException
send
public abstract void send(MessageContext msgContext,
org.apache.axiom.om.OMElement dataout,
URL url,
String soapActionString)
throws MalformedURLException,
AxisFault,
IOException
- Throws:
MalformedURLException
AxisFault
IOException
getHostConfiguration
protected org.apache.commons.httpclient.HostConfiguration getHostConfiguration(org.apache.commons.httpclient.HttpClient client,
MessageContext msgCtx,
URL targetURL)
throws AxisFault
- getting host configuration to support standard http/s, proxy and NTLM support
- Throws:
AxisFault
getTimeoutValues
protected void getTimeoutValues(MessageContext msgContext)
- This is used to get the dynamically set time out values from the
message context. If the values are not available or invalid then
teh default values or the values set by teh configuration will be used
- Parameters:
msgContext
-
setFormat
public void setFormat(org.apache.axiom.om.OMOutputFormat format)
getHttpClient
protected org.apache.commons.httpclient.HttpClient getHttpClient(MessageContext msgContext)
executeMethod
protected void executeMethod(org.apache.commons.httpclient.HttpClient httpClient,
MessageContext msgContext,
URL url,
org.apache.commons.httpclient.HttpMethod method)
throws IOException
- Throws:
IOException