Class Axis2HttpRequest
java.lang.Object
org.apache.synapse.transport.nhttp.Axis2HttpRequest
Represents an outgoing Axis2 HTTP/s request. It holds the EPR of the destination, the
Axis2 MessageContext to be sent, an HttpHost object which captures information about the
destination, and a Pipe used to write the message stream to the destination
-
Constructor Summary
ConstructorsConstructorDescriptionAxis2HttpRequest(org.apache.axis2.addressing.EndpointReference epr, org.apache.http.conn.routing.HttpRoute route, org.apache.axis2.context.MessageContext msgContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()org.apache.axis2.addressing.EndpointReferencegetEpr()org.apache.axis2.context.MessageContextorg.apache.http.HttpRequestCreate and return a new HttpPost request to the destination EPRorg.apache.http.conn.routing.HttpRoutegetRoute()intbooleanbooleanvoidsetCompleted(boolean completed) voidsetEndpointURLPrefix(String endpointURLPrefix) voidsetOutputBuffer(org.apache.http.nio.util.ContentOutputBuffer outputBuffer) voidsetReadyToStream(boolean readyToStream) voidsetSendingCompleted(boolean sendingCompleted) voidsetTimeout(int timeout) voidStart streaming the message into the Pipe, so that the contents could be read off the source channel returned by getSourceChannel()toString()
-
Constructor Details
-
Axis2HttpRequest
public Axis2HttpRequest(org.apache.axis2.addressing.EndpointReference epr, org.apache.http.conn.routing.HttpRoute route, org.apache.axis2.context.MessageContext msgContext)
-
-
Method Details
-
setReadyToStream
public void setReadyToStream(boolean readyToStream) -
setOutputBuffer
public void setOutputBuffer(org.apache.http.nio.util.ContentOutputBuffer outputBuffer) -
clear
public void clear() -
getEpr
public org.apache.axis2.addressing.EndpointReference getEpr() -
getRoute
public org.apache.http.conn.routing.HttpRoute getRoute() -
getMsgContext
public org.apache.axis2.context.MessageContext getMsgContext() -
getTimeout
public int getTimeout() -
setTimeout
public void setTimeout(int timeout) -
getEndpointURLPrefix
-
setEndpointURLPrefix
-
getRequest
Create and return a new HttpPost request to the destination EPR- Returns:
- the HttpRequest to be sent out
- Throws:
IOException- in error retrieving theHttpRequestorg.apache.http.HttpException
-
streamMessageContents
public void streamMessageContents() throws org.apache.axis2.AxisFaultStart streaming the message into the Pipe, so that the contents could be read off the source channel returned by getSourceChannel()- Throws:
org.apache.axis2.AxisFault- on error
-
isCompleted
public boolean isCompleted() -
setCompleted
public void setCompleted(boolean completed) -
isSendingCompleted
public boolean isSendingCompleted() -
setSendingCompleted
public void setSendingCompleted(boolean sendingCompleted) -
toString
-