org.apache.axis2.receivers
Class AbstractMessageReceiver

java.lang.Object
  extended by org.apache.axis2.receivers.AbstractMessageReceiver
All Implemented Interfaces:
MessageReceiver
Direct Known Subclasses:
AbstractInMessageReceiver, AbstractInOutAsyncMessageReceiver, AbstractInOutSyncMessageReceiver, AbstractRobustInMessageReceiver

public abstract class AbstractMessageReceiver
extends Object
implements MessageReceiver


Nested Class Summary
 class AbstractMessageReceiver.ThreadContextDescriptor
           
 
Field Summary
static String SAVED_MC
           
static String SAVED_TCCL
           
static String SCOPE
           
protected  String serviceTCCL
           
 
Constructor Summary
AbstractMessageReceiver()
           
 
Method Summary
 org.apache.axiom.soap.SOAPFactory getSOAPFactory(MessageContext msgContext)
           
protected  Object getTheImplementationObject(MessageContext msgContext)
          Method getTheImplementationObject.
protected  Object makeNewServiceObject(MessageContext msgContext)
          Method makeNewServiceObject.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.axis2.engine.MessageReceiver
receive
 

Field Detail

SCOPE

public static final String SCOPE
See Also:
Constant Field Values

serviceTCCL

protected String serviceTCCL

SAVED_TCCL

public static final String SAVED_TCCL
See Also:
Constant Field Values

SAVED_MC

public static final String SAVED_MC
See Also:
Constant Field Values
Constructor Detail

AbstractMessageReceiver

public AbstractMessageReceiver()
Method Detail

setThreadContext

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.

Parameters:
msgContext -

restoreThreadContext

protected void restoreThreadContext(AbstractMessageReceiver.ThreadContextDescriptor tc)

makeNewServiceObject

protected Object makeNewServiceObject(MessageContext msgContext)
                               throws AxisFault
Method makeNewServiceObject.

Parameters:
msgContext -
Returns:
Returns Object.
Throws:
AxisFault

getSOAPFactory

public org.apache.axiom.soap.SOAPFactory getSOAPFactory(MessageContext msgContext)
                                                 throws AxisFault
Throws:
AxisFault

getTheImplementationObject

protected Object getTheImplementationObject(MessageContext msgContext)
                                     throws AxisFault
Method getTheImplementationObject.

Parameters:
msgContext -
Returns:
Returns Object.
Throws:
AxisFault