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 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 void |
getTimeoutValues(MessageContext msgContext)
This is used to get the dynamically set time out values from the
message context. |
protected void |
obatainHTTPHeaderInformation(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,
OMElement dataout,
URL url,
String soapActionString)
|
void |
setChunked(boolean chunked)
|
void |
setFormat(OMOutputFormat format)
|
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
log
protected org.apache.commons.logging.Log log
proxyOutSetting
protected TransportOutDescription proxyOutSetting
- proxydiscription
format
protected OMOutputFormat format
httpClient
protected org.apache.commons.httpclient.HttpClient httpClient
AbstractHTTPSender
public AbstractHTTPSender()
setChunked
public void setChunked(boolean chunked)
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
obatainHTTPHeaderInformation
protected void obatainHTTPHeaderInformation(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,
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(OMOutputFormat format)