org.apache.axis2.transport
Class AbstractTransportSender

java.lang.Object
  extended byorg.apache.axis2.handlers.AbstractHandler
      extended byorg.apache.axis2.transport.AbstractTransportSender
All Implemented Interfaces:
Handler, java.io.Serializable, TransportSender
Direct Known Subclasses:
LocalTransportSender, MailTransportSender, TCPTransportSender

public abstract class AbstractTransportSender
extends AbstractHandler
implements TransportSender

By the time this Class is invoked either the To EPR on the MessageContext should be set or TRANSPORT_WRITER property set in the message Context with a Writer. This Class would write the SOAPMessage using either of the methods in the order To then Writer.

See Also:
Serialized Form

Field Summary
static javax.xml.namespace.QName NAME
          Field NAME
protected  OMOutputImpl omOutput
           
 
Fields inherited from class org.apache.axis2.handlers.AbstractHandler
handlerDesc
 
Constructor Summary
AbstractTransportSender()
          Constructor AbstractTransportSender
 
Method Summary
abstract  void finalizeSendWithOutputStreamFromIncomingConnection(MessageContext msgContext, java.io.OutputStream out)
           
abstract  void finalizeSendWithToAddress(MessageContext msgContext, java.io.OutputStream out)
           
 void init(ConfigurationContext confContext, TransportOutDescription transportOut)
          Initialize
 void invoke(MessageContext msgContext)
          Method invoke
protected abstract  java.io.OutputStream openTheConnection(EndpointReference epr, MessageContext msgctx)
           
abstract  java.io.OutputStream startSendWithOutputStreamFromIncomingConnection(MessageContext msgContext, java.io.OutputStream out)
           
abstract  java.io.OutputStream startSendWithToAddress(MessageContext msgContext, java.io.OutputStream out)
           
 void writeMessage(MessageContext msgContext, java.io.OutputStream out)
           
 
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.transport.TransportSender
cleanUp
 
Methods inherited from interface org.apache.axis2.engine.Handler
cleanup, getHandlerDesc, getName, getParameter, init
 

Field Detail

omOutput

protected OMOutputImpl omOutput

NAME

public static final javax.xml.namespace.QName NAME
Field NAME

Constructor Detail

AbstractTransportSender

public AbstractTransportSender()
Constructor AbstractTransportSender

Method Detail

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

invoke

public void invoke(MessageContext msgContext)
            throws AxisFault
Method invoke

Specified by:
invoke in interface Handler
Parameters:
msgContext -
Throws:
AxisFault

writeMessage

public void writeMessage(MessageContext msgContext,
                         java.io.OutputStream out)
                  throws AxisFault
Throws:
AxisFault

startSendWithToAddress

public abstract java.io.OutputStream startSendWithToAddress(MessageContext msgContext,
                                                            java.io.OutputStream out)
                                                     throws AxisFault
Throws:
AxisFault

finalizeSendWithToAddress

public abstract void finalizeSendWithToAddress(MessageContext msgContext,
                                               java.io.OutputStream out)
                                        throws AxisFault
Throws:
AxisFault

startSendWithOutputStreamFromIncomingConnection

public abstract java.io.OutputStream startSendWithOutputStreamFromIncomingConnection(MessageContext msgContext,
                                                                                     java.io.OutputStream out)
                                                                              throws AxisFault
Throws:
AxisFault

finalizeSendWithOutputStreamFromIncomingConnection

public abstract void finalizeSendWithOutputStreamFromIncomingConnection(MessageContext msgContext,
                                                                        java.io.OutputStream out)
                                                                 throws AxisFault
Throws:
AxisFault

openTheConnection

protected abstract java.io.OutputStream openTheConnection(EndpointReference epr,
                                                          MessageContext msgctx)
                                                   throws AxisFault
Throws:
AxisFault