public abstract class HTTPSender extends AbstractHTTPSender
| Modifier and Type | Class and Description |
|---|---|
protected static class |
HTTPSender.HTTPStatusCodeFamily
The set of HTTP status code families.
|
chunked, format, httpVersion, isAllowedRetry, proxyOutSetting| Constructor and Description |
|---|
HTTPSender() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
cleanup(org.apache.axis2.context.MessageContext msgContext,
Object httpMethod) |
protected HTTPSender.HTTPStatusCodeFamily |
getHTTPStatusCodeFamily(int statusCode)
Used to determine the family of HTTP status codes to which the given code
belongs.
|
protected abstract void |
handleResponse(org.apache.axis2.context.MessageContext msgContext,
Object httpMethodBase)
Used to handle the HTTP Response
|
void |
send(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActionString) |
protected abstract void |
sendViaDelete(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActiionString)
Used to send a request via HTTP Delete Method
|
protected abstract void |
sendViaGet(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActiionString)
Used to send a request via HTTP Get method
|
protected abstract void |
sendViaPost(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActionString)
Used to send a request via HTTP Post Method
|
protected abstract void |
sendViaPut(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActionString)
Used to send a request via HTTP Put Method
|
setChunked, setFormat, setHttpVersionprotected abstract void sendViaGet(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActiionString)
throws org.apache.axis2.AxisFault
msgContext - - The MessageContext of the messageurl - - The target URLsoapActiionString - - The soapAction string of the requestorg.apache.axis2.AxisFault - - Thrown in case an exception occursprotected abstract void sendViaDelete(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActiionString)
throws org.apache.axis2.AxisFault
msgContext - - The MessageContext of the messageurl - - The target URLsoapActiionString - - The soapAction string of the requestorg.apache.axis2.AxisFault - - Thrown in case an exception occursprotected abstract void sendViaPost(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActionString)
throws org.apache.axis2.AxisFault
msgContext - - The MessageContext of the messageurl - - The target URLsoapActionString - - The soapAction string of the requestorg.apache.axis2.AxisFault - - Thrown in case an exception occursprotected abstract void sendViaPut(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActionString)
throws org.apache.axis2.AxisFault
msgContext - - The MessageContext of the messageurl - - The target URLsoapActionString - - The soapAction string of the requestorg.apache.axis2.AxisFault - - Thrown in case an exception occursprotected abstract void handleResponse(org.apache.axis2.context.MessageContext msgContext,
Object httpMethodBase)
throws IOException
msgContext - - The MessageContext of the messagemethod - - The HTTP method usedIOException - - Thrown in case an exception occursprotected abstract void cleanup(org.apache.axis2.context.MessageContext msgContext,
Object httpMethod)
public void send(org.apache.axis2.context.MessageContext msgContext,
URL url,
String soapActionString)
throws IOException
send in class AbstractHTTPSenderIOExceptionprotected HTTPSender.HTTPStatusCodeFamily getHTTPStatusCodeFamily(int statusCode)
statusCode - - The HTTP status codeCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.