Save This Page
Home » axis2-1.5-src » org.apache » axis2 » receivers » [javadoc | source]
org.apache.axis2.receivers
abstract public class: AbstractMessageReceiver [javadoc | source]
java.lang.Object
   org.apache.axis2.receivers.AbstractMessageReceiver

All Implemented Interfaces:
    MessageReceiver

Direct Known Subclasses:
    CorbaMessageReceiver, RawXMLINOnlyMessageReceiver, EJBMessageReceiver, RMIMessageReciever, RawXMLINOutMessageReceiver, AbstractInMessageReceiver, AbstractRobustInMessageReceiver, ScriptReceiver, EJBInOnlyMessageReceiver, RawXMLINOutAsyncMessageReceiver, CorbaInOnlyMessageReceiver, AbstractInOutSyncMessageReceiver, MexMessageReceiver, AbstractInOutMessageReceiver, RawXMLINOutMessageReceiver, RPCInOutAsyncMessageReceiver, PingMessageReceiver, AbstractInOutAsyncMessageReceiver, RawXMLINOnlyMessageReceiver, RPCInOnlyMessageReceiver, CorbaInOutAsyncMessageReceiver, EJBInOutAsyncMessageReceiver, RPCMessageReceiver

Nested Class Summary:
public static class  AbstractMessageReceiver.ThreadContextDescriptor   
public class  AbstractMessageReceiver.AsyncMessageReceiverWorker   
Field Summary
protected static final  Log log     
public static final  String SCOPE     
protected  String serviceTCCL     
public static final  String SAVED_TCCL     
public static final  String SAVED_MC     
public static final  String DO_ASYNC     
Method from org.apache.axis2.receivers.AbstractMessageReceiver Summary:
getSOAPFactory,   getTheImplementationObject,   invokeBusinessLogic,   makeNewServiceObject,   receive,   replicateState,   restoreThreadContext,   setThreadContext
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.axis2.receivers.AbstractMessageReceiver Detail:
 public SOAPFactory getSOAPFactory(MessageContext msgContext) throws AxisFault 
 protected Object getTheImplementationObject(MessageContext msgContext) throws AxisFault 
    Retrieve the implementation object. This will either return a cached object if present in the ServiceContext, or create a new one via makeNewServiceObject() (and then cache that).
 abstract protected  void invokeBusinessLogic(MessageContext messageCtx) throws AxisFault
    Do the actual work of the MessageReceiver. Must be overridden by concrete subclasses.
 protected Object makeNewServiceObject(MessageContext msgContext) throws AxisFault 
    Create a new service object. Override if you want to customize how this happens in your own MessageReceiver.
 public  void receive(MessageContext messageCtx) throws AxisFault 
 protected  void replicateState(MessageContext messageContext) throws ClusteringFault 
 protected  void restoreThreadContext(AbstractMessageReceiver.ThreadContextDescriptor tc) 
 protected AbstractMessageReceiver.ThreadContextDescriptor setThreadContext(MessageContext msgContext) 
    Several pieces of information need to be available to the service implementation class. For one, the ThreadContextClassLoader needs to be correct, and for another we need to give the service code access to the MessageContext (getCurrentContext()). So we toss these things in TLS.