org.apache.axis2.transport.http
Class CommonsHTTPTransportSender

java.lang.Object
  extended byorg.apache.axis2.handlers.AbstractHandler
      extended byorg.apache.axis2.transport.http.CommonsHTTPTransportSender
All Implemented Interfaces:
Handler, TransportSender

public class CommonsHTTPTransportSender
extends AbstractHandler
implements TransportSender


Nested Class Summary
 
Nested classes inherited from class org.apache.axis2.engine.Handler
Handler.InvocationResponse
 
Field Summary
protected  String httpVersion
           
protected static String PROXY_HOST_NAME
           
protected static String PROXY_PORT
           
protected  TransportOutDescription proxyOutSetting
          proxydiscription
 
Fields inherited from class org.apache.axis2.handlers.AbstractHandler
handlerDesc
 
Constructor Summary
CommonsHTTPTransportSender()
           
 
Method Summary
 void cleanup(MessageContext msgContext)
          Clean up
 void init(ConfigurationContext confContext, TransportOutDescription transportOut)
          Initialize
 Handler.InvocationResponse invoke(MessageContext msgContext)
          Invoke is called to do the actual work of the Handler object.
 void stop()
           
 void writeMessageWithCommons(MessageContext messageContext, EndpointReference toEPR, org.apache.axiom.om.OMElement dataout, org.apache.axiom.om.OMOutputFormat format)
           
 void writeMessageWithToOutPutStream(MessageContext msgContext, OutputStream out)
           
 
Methods inherited from class org.apache.axis2.handlers.AbstractHandler
cleanup, getHandlerDesc, getName, getParameter, init, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.axis2.engine.Handler
cleanup, getHandlerDesc, getName, getParameter, init
 

Field Detail

PROXY_HOST_NAME

protected static final String PROXY_HOST_NAME
See Also:
Constant Field Values

PROXY_PORT

protected static final String PROXY_PORT
See Also:
Constant Field Values

proxyOutSetting

protected TransportOutDescription proxyOutSetting
proxydiscription


httpVersion

protected String httpVersion
Constructor Detail

CommonsHTTPTransportSender

public CommonsHTTPTransportSender()
Method Detail

cleanup

public void cleanup(MessageContext msgContext)
             throws AxisFault
Description copied from interface: TransportSender
Clean up

Specified by:
cleanup in interface TransportSender
Parameters:
msgContext -
Throws:
AxisFault

init

public void init(ConfigurationContext confContext,
                 TransportOutDescription transportOut)
          throws AxisFault
Description copied from interface: TransportSender
Initialize

Specified by:
init in interface TransportSender
Parameters:
confContext -
transportOut -
Throws:
AxisFault

stop

public void stop()
Specified by:
stop in interface TransportSender

invoke

public Handler.InvocationResponse invoke(MessageContext msgContext)
                                  throws AxisFault
Description copied from interface: Handler
Invoke is called to do the actual work of the Handler object. If there is a fault during the processing of this method it is invoke's job to catch the exception and undo any partial work that has been completed. N.B. This method may be called concurrently from multiple threads.

Specified by:
invoke in interface Handler
Parameters:
msgContext - the MessageContext to process with this Handler.
Returns:
An InvocationResponse that indicates what the next step in the message processing should be.
Throws:
AxisFault - if the handler encounters an error

writeMessageWithCommons

public void writeMessageWithCommons(MessageContext messageContext,
                                    EndpointReference toEPR,
                                    org.apache.axiom.om.OMElement dataout,
                                    org.apache.axiom.om.OMOutputFormat format)
                             throws AxisFault
Throws:
AxisFault

writeMessageWithToOutPutStream

public void writeMessageWithToOutPutStream(MessageContext msgContext,
                                           OutputStream out)