Package org.apache.axis2.transport.http
Class HTTPSender
- java.lang.Object
-
- org.apache.axis2.transport.http.HTTPSender
-
- Direct Known Subclasses:
HTTPSenderImpl
public abstract class HTTPSender extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.axiom.om.OMOutputFormatformatprotected org.apache.axis2.description.TransportOutDescriptionproxyOutSetting
-
Constructor Summary
Constructors Constructor Description HTTPSender()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract RequestcreateRequest(org.apache.axis2.context.MessageContext msgContext, String methodName, URL url, AxisRequestEntity requestEntity)Start a new HTTP request.voidsend(org.apache.axis2.context.MessageContext msgContext, URL url, String soapActionString)voidsetChunked(boolean chunked)voidsetFormat(org.apache.axiom.om.OMOutputFormat format)voidsetHttpVersion(String version)
-
-
-
Method Detail
-
setChunked
public void setChunked(boolean chunked)
-
setHttpVersion
public void setHttpVersion(String version) throws org.apache.axis2.AxisFault
- Throws:
org.apache.axis2.AxisFault
-
setFormat
public void setFormat(org.apache.axiom.om.OMOutputFormat format)
-
createRequest
protected abstract Request createRequest(org.apache.axis2.context.MessageContext msgContext, String methodName, URL url, AxisRequestEntity requestEntity) throws org.apache.axis2.AxisFault
Start a new HTTP request.- Parameters:
msgContext- The MessageContext of the request messagemethodName- The HTTP method nameurl- The target URLrequestEntity- The content of the request ornullif the HTTP request shouldn't have any content (e.g. forGETrequests)- Throws:
org.apache.axis2.AxisFault- Thrown in case an exception occurs
-
send
public void send(org.apache.axis2.context.MessageContext msgContext, URL url, String soapActionString) throws IOException- Throws:
IOException
-
-