|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axis2.transport.http.AbstractHTTPSender
public abstract class AbstractHTTPSender
| Field Summary | |
|---|---|
protected static java.lang.String |
ANONYMOUS
|
protected boolean |
chunked
|
protected org.apache.axiom.om.OMOutputFormat |
format
|
protected java.lang.String |
httpVersion
|
protected boolean |
isAllowedRetry
isAllowedRetry will be using to check where the retry should be allowed or not. |
protected static java.lang.String |
PROTOCOL_HTTP
|
protected static java.lang.String |
PROTOCOL_HTTPS
|
protected static java.lang.String |
PROXY_HOST_NAME
|
protected static java.lang.String |
PROXY_PORT
|
protected TransportOutDescription |
proxyOutSetting
proxydiscription |
| Constructor Summary | |
|---|---|
AbstractHTTPSender()
|
|
| Method Summary | |
|---|---|
void |
addCustomHeaders(org.apache.commons.httpclient.HttpMethod method,
MessageContext msgContext)
|
protected void |
executeMethod(org.apache.commons.httpclient.HttpClient httpClient,
MessageContext msgContext,
java.net.URL url,
org.apache.commons.httpclient.HttpMethod method)
|
protected org.apache.commons.httpclient.HostConfiguration |
getHostConfiguration(org.apache.commons.httpclient.HttpClient client,
MessageContext msgCtx,
java.net.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,
java.net.URL url,
org.apache.commons.httpclient.HttpMethodBase httpMethod,
org.apache.commons.httpclient.HttpClient httpClient,
java.lang.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,
java.net.URL url,
java.lang.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(java.lang.String version)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String ANONYMOUS
protected static final java.lang.String PROXY_HOST_NAME
protected static final java.lang.String PROXY_PORT
protected boolean chunked
protected java.lang.String httpVersion
protected static final java.lang.String PROTOCOL_HTTP
protected static final java.lang.String PROTOCOL_HTTPS
protected TransportOutDescription proxyOutSetting
protected org.apache.axiom.om.OMOutputFormat format
protected boolean isAllowedRetry
| Constructor Detail |
|---|
public AbstractHTTPSender()
| Method Detail |
|---|
public void setChunked(boolean chunked)
public void setHttpVersion(java.lang.String version)
throws AxisFault
AxisFault
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 occur
protected void processResponse(org.apache.commons.httpclient.HttpMethodBase httpMethod,
MessageContext msgContext)
throws java.io.IOException
java.io.IOException
public abstract void send(MessageContext msgContext,
java.net.URL url,
java.lang.String soapActionString)
throws java.io.IOException
java.io.IOException
protected org.apache.commons.httpclient.HostConfiguration getHostConfiguration(org.apache.commons.httpclient.HttpClient client,
MessageContext msgCtx,
java.net.URL targetURL)
throws AxisFault
client - active HttpClientmsgCtx - active MessageContexttargetURL - the target URL
AxisFault - 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,
java.net.URL url,
org.apache.commons.httpclient.HttpMethodBase httpMethod,
org.apache.commons.httpclient.HttpClient httpClient,
java.lang.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 message
AxisFault - - Thrown in case an exception occurs
protected void initializeTimeouts(MessageContext msgContext,
org.apache.commons.httpclient.HttpClient httpClient)
msgContext - the active MessageContexthttpClient - public 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,
java.net.URL url,
org.apache.commons.httpclient.HttpMethod method)
throws java.io.IOException
java.io.IOException
public void addCustomHeaders(org.apache.commons.httpclient.HttpMethod method,
MessageContext msgContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||