public class MessageContext extends Object
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.Constructor and Description |
---|
MessageContext()
Construct a MessageContext without a prior Axis2 MessageContext
(usage outbound dispatch/proxy)
|
MessageContext(MessageContext mc)
Construct a MessageContext with a prior MessageContext
(usage inbound client/server or outbound server)
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object key) |
void |
freeInputStream()
Free the resources associated with the incoming input stream.
|
MessageContext |
getAxisMessageContext() |
AxisFault |
getCausedByException() |
ClassLoader |
getClassLoader() |
EndpointDescription |
getEndpointDescription() |
InvocationContext |
getInvocationContext() |
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.
|
MEPContext |
getMEPContext() |
Message |
getMessage() |
Service.Mode |
getMode() |
OperationDescription |
getOperationDescription() |
QName |
getOperationName() |
Map<String,Object> |
getProperties() |
Object |
getProperty(String key) |
boolean |
isMaintainSession()
Used to determine whether or not session state has been enabled.
|
boolean |
isOutbound() |
boolean |
isServer() |
void |
setCausedByException(AxisFault t) |
void |
setEndpointDescription(EndpointDescription ed) |
void |
setInvocationContext(InvocationContext ic) |
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.
|
void |
setMEPContext(MEPContext mepCtx)
Set the wrapper MEPContext.
|
void |
setMessage(Message msg) |
void |
setMode(Service.Mode m) |
void |
setOperationDescription(OperationDescription od) |
void |
setOperationName(QName op) |
void |
setOutbound(boolean isOutbound) |
void |
setProperties(Map<String,Object> _properties) |
Object |
setProperty(String key,
Object value) |
void |
setPropertyNoReturn(String key,
Object value)
Like getProperty, but does not return prior value.
|
void |
setServer(boolean isServer)
Indicate if server role
|
public MessageContext()
public MessageContext(MessageContext mc) throws WebServiceException
mc
- WebServiceException
public InvocationContext getInvocationContext()
public void setInvocationContext(InvocationContext ic)
public boolean containsKey(Object key)
public void setPropertyNoReturn(String key, Object value)
key
- Stringvalue
- Objectpublic EndpointDescription getEndpointDescription()
public void setEndpointDescription(EndpointDescription ed)
public OperationDescription getOperationDescription()
public void setOperationDescription(OperationDescription od)
public Service.Mode getMode()
public void setMode(Service.Mode m)
public QName getOperationName()
public void setOperationName(QName op)
public void setMessage(Message msg)
public Message getMessage()
public MessageContext getAxisMessageContext()
public ClassLoader getClassLoader()
public boolean isMaintainSession()
public Throwable getLocalException()
public void setLocalException(Throwable t)
t
- Throwable
public void setCausedByException(AxisFault t)
t
- public AxisFault getCausedByException()
public void setMEPContext(MEPContext mepCtx)
mepCtx
- public MEPContext getMEPContext()
public boolean isOutbound()
public void setOutbound(boolean isOutbound)
isOutbound
- true if outbound MessageContextpublic boolean isServer()
public void setServer(boolean isServer)
isServer
- public void freeInputStream() throws IOException
IOException
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.