Home » axis2-1.5-src » org.apache » axis2 » jaxws » core » [javadoc | source]
public class: MessageContext [javadoc | source]
The org.apache.axis2.jaxws.core.MessageContext is an interface that extends the JAX-WS 2.0 javax.xml.ws.handler.MessageContext defined in the spec. This encapsulates all of the functionality needed of the MessageContext for the other JAX-WS spec pieces (the handlers for example) and also provides the needed bits of contextual information for the rest of the JAX-WS implementation.

Specifically, this is responsible for providing APIs so that the client and server implementation portions can get to the Message, defined by the Message Model format and also any metadata that is available.
 public MessageContext() 
 public MessageContext(MessageContext mc) throws WebServiceException 
    Construct a MessageContext with a prior MessageContext (usage inbound client/server or outbound server)
    mc -
    WebServiceException -
Method from org.apache.axis2.jaxws.core.MessageContext Summary:
containsKey,   freeInputStream,   getAxisMessageContext,   getCausedByException,   getClassLoader,   getEndpointDescription,   getInvocationContext,   getLocalException,   getMEPContext,   getMessage,   getMode,   getOperationDescription,   getOperationName,   getProperties,   getProperty,   isMaintainSession,   isOutbound,   isServer,   setCausedByException,   setEndpointDescription,   setInvocationContext,   setLocalException,   setMEPContext,   setMessage,   setMode,   setOperationDescription,   setOperationName,   setOutbound,   setProperties,   setProperty,   setServer
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.axis2.jaxws.core.MessageContext Detail:
 public boolean containsKey(Object key) 
 public  void freeInputStream() throws IOException 
    Free the resources associated with the incoming input stream. (i.e. HTTPInputStream) This allows the transport layer to free resources and pool connections
 public MessageContext getAxisMessageContext() 
 public AxisFault getCausedByException() 
 public ClassLoader getClassLoader() 
 public EndpointDescription getEndpointDescription() 
 public InvocationContext getInvocationContext() 
 public Throwable getLocalException() 
    The local exception is the Throwable object held on the Message from a problem that occurred due to something other than the server. In other words, no message ever travelled across the wire.
 public MEPContext getMEPContext() 
 public Message getMessage() 
 public Mode getMode() 
 public OperationDescription getOperationDescription() 
 public QName getOperationName() 
 public Map getProperties() 
 public Object getProperty(String key) 
 public boolean isMaintainSession() 
    Used to determine whether or not session state has been enabled.
 public boolean isOutbound() 
 public boolean isServer() 
 public  void setCausedByException(AxisFault t) 
 public  void setEndpointDescription(EndpointDescription ed) 
 public  void setInvocationContext(InvocationContext ic) 
 public  void setLocalException(Throwable t) 
    The local exception is the Throwable object held on the Message from a problem that occurred due to something other than the server. In other words, no message ever travelled across the wire.
 public  void setMEPContext(MEPContext mepCtx) 
    Set the wrapper MEPContext. Internally, this method also sets the MEPContext's children so the pointer is bi-directional; you can get the MEPContext from the MessageContext and vice-versa.
 public  void setMessage(Message msg) 
 public  void setMode(Mode m) 
 public  void setOperationDescription(OperationDescription od) 
 public  void setOperationName(QName op) 
 public  void setOutbound(boolean isOutbound) 
 public  void setProperties(Map _properties) 
 public Object setProperty(String key,
    Object value) 
 public  void setServer(boolean isServer) 
    Indicate if server role