org.apache.axis2.receivers
Class AbstractMessageReceiver

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

public abstract class AbstractMessageReceiver
extends java.lang.Object
implements MessageReceiver


Nested Class Summary
 class AbstractMessageReceiver.ThreadContextDescriptor
           
 
Field Summary
static java.lang.String SAVED_MC
           
static java.lang.String SAVED_TCCL
           
static java.lang.String SCOPE
           
protected  java.lang.String serviceTCCL
           
 
Constructor Summary
AbstractMessageReceiver()
           
 
Method Summary
 org.apache.axiom.soap.SOAPFactory getSOAPFactory(MessageContext msgContext)
           
protected  java.lang.Object getTheImplementationObject(MessageContext msgContext)
          Method getTheImplementationObject.
protected  java.lang.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 java.lang.String SCOPE
See Also:
Constant Field Values

serviceTCCL

protected java.lang.String serviceTCCL

SAVED_TCCL

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

SAVED_MC

public static final java.lang.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 java.lang.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 java.lang.Object getTheImplementationObject(MessageContext msgContext)
                                               throws AxisFault
Method getTheImplementationObject.

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


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.