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, java.io.Serializable, TransportSender

public class CommonsHTTPTransportSender
extends AbstractHandler
implements TransportSender

See Also:
Serialized Form

Nested Class Summary
 class CommonsHTTPTransportSender.AxisRequestEntity
           
 class CommonsHTTPTransportSender.PostAxisRequestEntity
           
 
Field Summary
protected  OMOutputFormat format
           
static java.lang.String HTTP_METHOD
           
protected  org.apache.commons.httpclient.HttpClient httpClient
           
protected  org.apache.commons.logging.Log log
           
protected  OMElement outputMessage
           
protected static java.lang.String PROXY_HOST_NAME
           
protected static java.lang.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
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.RequestData createRequest(MessageContext msgContext)
           
 java.lang.String getParam(MessageContext msgContext)
           
 void init(ConfigurationContext confContext, TransportOutDescription transportOut)
          Initialize
 void invoke(MessageContext msgContext)
          Invoke is called to do the actual work of the Handler object.
 void writeMessageWithCommons(MessageContext msgContext, EndpointReference toURL, OMElement dataout)
           
 
Methods inherited from class org.apache.axis2.handlers.AbstractHandler
cleanup, getHandlerDesc, getName, getParameter, init, revoke, 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

HTTP_METHOD

public static final java.lang.String HTTP_METHOD
See Also:
Constant Field Values

httpClient

protected org.apache.commons.httpclient.HttpClient httpClient

outputMessage

protected OMElement outputMessage

format

protected OMOutputFormat format

proxyOutSetting

protected TransportOutDescription proxyOutSetting
proxydiscription


PROXY_HOST_NAME

protected static final java.lang.String PROXY_HOST_NAME
See Also:
Constant Field Values

PROXY_PORT

protected static final java.lang.String PROXY_PORT
See Also:
Constant Field Values

log

protected org.apache.commons.logging.Log log
Constructor Detail

CommonsHTTPTransportSender

public CommonsHTTPTransportSender()
Method Detail

createRequest

public org.apache.axis2.transport.http.CommonsHTTPTransportSender.RequestData createRequest(MessageContext msgContext)

invoke

public void 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. Once we leave 'invoke' if a fault is thrown, this class's 'onFault' method will be called. Invoke should rethrow any exceptions it catches, wrapped in an AxisFault.

Specified by:
invoke in interface Handler
Parameters:
msgContext - the MessageContext to process with this Handler.
Throws:
AxisFault - if the handler encounters an error

writeMessageWithCommons

public void writeMessageWithCommons(MessageContext msgContext,
                                    EndpointReference toURL,
                                    OMElement dataout)
                             throws AxisFault
Throws:
AxisFault

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

getParam

public java.lang.String getParam(MessageContext msgContext)