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 OMOutputFormat
format
protected TransportOutDescription
proxyOutSetting
-
Constructor Summary
Constructors Constructor Description HTTPSender()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Request
createRequest(MessageContext msgContext, String methodName, URL url, AxisRequestEntity requestEntity)
Start a new HTTP request.void
send(MessageContext msgContext, URL url, String soapActionString)
void
setChunked(boolean chunked)
void
setFormat(OMOutputFormat format)
void
setHttpVersion(String version)
-
-
-
Field Detail
-
proxyOutSetting
protected TransportOutDescription proxyOutSetting
-
format
protected OMOutputFormat format
-
-
Method Detail
-
setChunked
public void setChunked(boolean chunked)
-
setFormat
public void setFormat(OMOutputFormat format)
-
createRequest
protected abstract Request createRequest(MessageContext msgContext, String methodName, URL url, AxisRequestEntity requestEntity) throws 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 ornull
if the HTTP request shouldn't have any content (e.g. forGET
requests)- Throws:
AxisFault
- Thrown in case an exception occurs
-
send
public void send(MessageContext msgContext, URL url, String soapActionString) throws IOException
- Throws:
IOException
-
-