org.apache.axis2.transport.nhttp
Class Axis2HttpRequest

java.lang.Object
  extended by org.apache.axis2.transport.nhttp.Axis2HttpRequest

public class Axis2HttpRequest
extends java.lang.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


Constructor Summary
Axis2HttpRequest(EndpointReference epr, org.apache.http.HttpHost httpHost, MessageContext msgContext)
           
 
Method Summary
 EndpointReference getEpr()
           
 org.apache.http.HttpHost getHttpHost()
           
 MessageContext getMsgContext()
           
 org.apache.http.HttpRequest getRequest()
          Create and return a new HttpPost request to the destination EPR
 java.nio.channels.ReadableByteChannel getSourceChannel()
          Return the source channel of the pipe that bridges the serialized output to the socket
 void streamMessageContents()
          Start streaming the message into the Pipe, so that the contents could be read off the source channel returned by getSourceChannel()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Axis2HttpRequest

public Axis2HttpRequest(EndpointReference epr,
                        org.apache.http.HttpHost httpHost,
                        MessageContext msgContext)
Method Detail

getEpr

public EndpointReference getEpr()

getHttpHost

public org.apache.http.HttpHost getHttpHost()

getMsgContext

public MessageContext getMsgContext()

getRequest

public org.apache.http.HttpRequest getRequest()
                                       throws java.io.IOException
Create and return a new HttpPost request to the destination EPR

Returns:
the HttpRequest to be sent out
Throws:
java.io.IOException

getSourceChannel

public java.nio.channels.ReadableByteChannel getSourceChannel()
Return the source channel of the pipe that bridges the serialized output to the socket

Returns:
source channel to read serialized message contents

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


Copyright © 2007 Apache Web Services Project. All Rights Reserved.