org.apache.synapse.transport.nhttp
Class Axis2HttpRequest
java.lang.Object
org.apache.synapse.transport.nhttp.Axis2HttpRequest
public class Axis2HttpRequest
- extends Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Axis2HttpRequest
public Axis2HttpRequest(EndpointReference epr,
org.apache.http.HttpHost httpHost,
MessageContext msgContext)
setReadyToStream
public void setReadyToStream(boolean readyToStream)
setOutputBuffer
public void setOutputBuffer(org.apache.http.nio.util.ContentOutputBuffer outputBuffer)
clear
public void clear()
getEpr
public EndpointReference getEpr()
getHttpHost
public org.apache.http.HttpHost getHttpHost()
getMsgContext
public MessageContext getMsgContext()
getRequest
public org.apache.http.HttpRequest getRequest()
throws IOException
- Create and return a new HttpPost request to the destination EPR
- Returns:
- the HttpRequest to be sent out
- Throws:
IOException
streamMessageContents
public void streamMessageContents()
throws AxisFault
- Start streaming the message into the Pipe, so that the contents could be read off the source
channel returned by getSourceChannel()
- Throws:
AxisFault - on error
isCompleted
public boolean isCompleted()
setCompleted
public void setCompleted(boolean completed)
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.