|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.context.AbstractContext
org.apache.axis2.context.MessageContext
The palce where all the service specific states are kept.
All the Global states kept in the EngineRegistry
and all the
Service states kept in the MessageContext
. Other runtime
artifacts does not keep states foward from the execution.
Field Summary | |
static java.lang.String |
CHARACTER_SET_ENCODING
Field CHARACTER_SET_ENCODING |
static java.lang.String |
DEFAULT_CHAR_SET_ENCODING
Field DEFAULT_CHAR_SET_ENCODING This is the default value for CHARACTER_SET_ENCODING property |
boolean |
outPutWritten
|
static java.lang.String |
TRANSPORT_HEADERS
|
static java.lang.String |
TRANSPORT_IN
Field TRANSPORT_READER |
static java.lang.String |
TRANSPORT_OUT
Field TRANSPORT_WRITER |
static java.lang.String |
TRANSPORT_SUCCEED
Field TRANSPORT_SUCCEED |
static java.lang.String |
UTF_16
Field UTF_8 This is the 'utf-8' value for CHARACTER_SET_ENCODING property |
static java.lang.String |
UTF_8
Field UTF_8 This is the 'utf-8' value for CHARACTER_SET_ENCODING property |
Fields inherited from class org.apache.axis2.context.AbstractContext |
nonPersistentMap, parent, persistentMap |
Constructor Summary | |
MessageContext(ConfigurationContext engineContext)
Conveniance Method, but before call engine.send() or engine.receive() one must send transport in/out |
|
MessageContext(ConfigurationContext engineContext,
SessionContext sessionContext,
TransportInDescription transportIn,
TransportOutDescription transportOut)
|
|
MessageContext(ConfigurationContext engineContext,
TransportInDescription transportIn,
TransportOutDescription transportOut)
|
Method Summary | |
SOAPEnvelope |
getEnvelope()
|
EndpointReference |
getFaultTo()
|
EndpointReference |
getFrom()
|
java.lang.String |
getMessageID()
|
MessageInformationHeaders |
getMessageInformationHeaders()
|
Parameter |
getModuleParameter(java.lang.String key,
java.lang.String moduleName,
HandlerDescription handler)
This method is to retrive both module configuration parameters and othere paramerts The searching procedure is as follows; 1. |
OperationContext |
getOperationContext()
|
OperationDescription |
getOperationDescription()
|
Parameter |
getParameter(java.lang.String key)
To retrive configuration descriptor parameters , it is posible to get paramater specify at any levle via this method , and the preferance is as follows, 1. |
javax.xml.namespace.QName |
getPausedHandlerName()
|
java.lang.String |
getPausedPhaseName()
|
java.lang.Object |
getProperty(java.lang.String key,
boolean persistent)
To acess any property set at the run time , a handler can add property to wherever he wants to MesageContext , to OperationContext , to ServiceContext and to ConfigurationContext. |
RelatesTo |
getRelatesTo()
|
EndpointReference |
getReplyTo()
|
ServiceContext |
getServiceContext()
|
java.lang.String |
getServiceContextID()
|
ServiceDescription |
getServiceDescription()
|
ServiceGroupContext |
getServiceGroupContext()
|
java.lang.String |
getServiceGroupContextId()
|
ServiceGroupDescription |
getServiceGroupDescription()
|
SessionContext |
getSessionContext()
|
java.lang.String |
getSoapAction()
|
ConfigurationContext |
getSystemContext()
|
EndpointReference |
getTo()
|
TransportInDescription |
getTransportIn()
|
TransportOutDescription |
getTransportOut()
|
java.lang.String |
getWSAAction()
|
java.lang.String |
getWSAMessageId()
|
void |
init(AxisConfiguration axisConfiguration)
The method is used to do the intialization of the EngineContext |
boolean |
isDoingMTOM()
|
boolean |
isDoingREST()
|
boolean |
isInFaultFlow()
|
boolean |
isNewThreadRequired()
|
boolean |
isOutPutWritten()
|
boolean |
isPaused()
|
boolean |
isProcessingFault()
|
boolean |
isResponseWritten()
|
boolean |
isRestThroughPOST()
|
boolean |
isServerSide()
|
boolean |
isSOAP11()
|
void |
setConfigurationContext(ConfigurationContext context)
|
void |
setDoingMTOM(boolean b)
|
void |
setDoingREST(boolean b)
|
void |
setEnvelope(SOAPEnvelope envelope)
|
void |
setFaultTo(EndpointReference reference)
|
void |
setFrom(EndpointReference reference)
|
void |
setInFaultFlow(boolean b)
|
void |
setMessageID(java.lang.String string)
|
void |
setMessageInformationHeaders(MessageInformationHeaders collection)
|
void |
setNewThreadRequired(boolean b)
|
void |
setOperationContext(OperationContext context)
|
void |
setOperationDescription(OperationDescription operationDescription)
|
void |
setOutPutWritten(boolean b)
|
void |
setPausedFalse()
|
void |
setPausedPhaseName(java.lang.String name)
|
void |
setPausedTrue(javax.xml.namespace.QName handlerName)
|
void |
setProcessingFault(boolean b)
|
void |
setRelatesTo(RelatesTo reference)
|
void |
setReplyTo(EndpointReference referance)
|
void |
setResponseWritten(boolean b)
|
void |
setRestThroughPOST(boolean b)
|
void |
setServerSide(boolean b)
|
void |
setServiceContext(ServiceContext context)
|
void |
setServiceContextID(java.lang.String serviceContextID)
|
void |
setServiceDescription(ServiceDescription serviceDescription)
|
void |
setServiceGroupContext(ServiceGroupContext serviceGroupContext)
|
void |
setServiceGroupContextId(java.lang.String serviceGroupContextId)
|
void |
setServiceGroupDescription(ServiceGroupDescription serviceGroupDescription)
|
void |
setSoapAction(java.lang.String string)
|
void |
setTo(EndpointReference referance)
|
void |
setTransportIn(TransportInDescription in)
|
void |
setTransportOut(TransportOutDescription out)
|
void |
setWSAAction(java.lang.String actionURI)
Method getExecutionChain |
void |
setWSAMessageId(java.lang.String messageID)
|
Methods inherited from class org.apache.axis2.context.AbstractContext |
getNonPersistentMap, getParent, getPersistentMap, getProperty, setParent, setProperty, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String TRANSPORT_HEADERS
public static final java.lang.String TRANSPORT_OUT
public static final java.lang.String TRANSPORT_IN
public static final java.lang.String CHARACTER_SET_ENCODING
public static final java.lang.String UTF_8
public static final java.lang.String UTF_16
public static final java.lang.String DEFAULT_CHAR_SET_ENCODING
public static final java.lang.String TRANSPORT_SUCCEED
public boolean outPutWritten
Constructor Detail |
public MessageContext(ConfigurationContext engineContext) throws AxisFault
engineContext
-
AxisFault
public MessageContext(ConfigurationContext engineContext, TransportInDescription transportIn, TransportOutDescription transportOut) throws AxisFault
public MessageContext(ConfigurationContext engineContext, SessionContext sessionContext, TransportInDescription transportIn, TransportOutDescription transportOut) throws AxisFault
sessionContext
- transportIn
- transportOut
-
AxisFault
Method Detail |
public void init(AxisConfiguration axisConfiguration) throws AxisFault
init
in class AbstractContext
AxisFault
public EndpointReference getFaultTo()
public EndpointReference getFrom()
public boolean isInFaultFlow()
public SOAPEnvelope getEnvelope()
public java.lang.String getMessageID()
public boolean isProcessingFault()
public RelatesTo getRelatesTo()
public EndpointReference getReplyTo()
public boolean isResponseWritten()
public boolean isServerSide()
public SessionContext getSessionContext()
public EndpointReference getTo()
public void setFaultTo(EndpointReference reference)
reference
- public void setFrom(EndpointReference reference)
reference
- public void setInFaultFlow(boolean b)
b
- public void setEnvelope(SOAPEnvelope envelope) throws AxisFault
envelope
-
AxisFault
public void setMessageID(java.lang.String string)
string
- public void setProcessingFault(boolean b)
b
- public void setRelatesTo(RelatesTo reference)
reference
- public void setReplyTo(EndpointReference referance)
referance
- public void setResponseWritten(boolean b)
b
- public void setServerSide(boolean b)
b
- public void setTo(EndpointReference referance)
referance
- public boolean isNewThreadRequired()
public void setNewThreadRequired(boolean b)
b
- public void setWSAAction(java.lang.String actionURI)
public java.lang.String getWSAAction()
public void setWSAMessageId(java.lang.String messageID)
public java.lang.String getWSAMessageId()
public MessageInformationHeaders getMessageInformationHeaders()
public boolean isPaused()
public void setPausedTrue(javax.xml.namespace.QName handlerName)
public void setPausedFalse()
public TransportInDescription getTransportIn()
public TransportOutDescription getTransportOut()
public void setTransportIn(TransportInDescription in)
in
- public void setTransportOut(TransportOutDescription out)
out
- public OperationContext getOperationContext()
public void setOperationContext(OperationContext context)
context
- public boolean isOutPutWritten()
public void setOutPutWritten(boolean b)
b
- public java.lang.String getServiceContextID()
public void setServiceContextID(java.lang.String serviceContextID)
serviceContextID
- The serviceContextID to set.public ConfigurationContext getSystemContext()
public ServiceContext getServiceContext()
public void setConfigurationContext(ConfigurationContext context)
context
- public void setServiceContext(ServiceContext context)
context
- public void setMessageInformationHeaders(MessageInformationHeaders collection)
collection
- public Parameter getParameter(java.lang.String key)
key
-
Paramter
public Parameter getModuleParameter(java.lang.String key, java.lang.String moduleName, HandlerDescription handler)
key
- : Paramtre NamemoduleName
- : Name of the modulehandler
- HandlerDescription
Parameter
public java.lang.Object getProperty(java.lang.String key, boolean persistent)
getProperty
in class AbstractContext
key
- : property Namepersistent
- : need to be persistent even when server re-start
public javax.xml.namespace.QName getPausedHandlerName()
public java.lang.String getPausedPhaseName()
public void setPausedPhaseName(java.lang.String name)
name
- public java.lang.String getSoapAction()
public void setSoapAction(java.lang.String string)
string
- public boolean isDoingMTOM()
public void setDoingMTOM(boolean b)
b
- public boolean isDoingREST()
public void setDoingREST(boolean b)
b
- public void setRestThroughPOST(boolean b)
public boolean isRestThroughPOST()
public boolean isSOAP11()
public ServiceGroupContext getServiceGroupContext()
public void setServiceGroupContext(ServiceGroupContext serviceGroupContext)
public OperationDescription getOperationDescription()
public void setOperationDescription(OperationDescription operationDescription)
public ServiceDescription getServiceDescription()
public void setServiceDescription(ServiceDescription serviceDescription)
public ServiceGroupDescription getServiceGroupDescription()
public void setServiceGroupDescription(ServiceGroupDescription serviceGroupDescription)
public java.lang.String getServiceGroupContextId()
public void setServiceGroupContextId(java.lang.String serviceGroupContextId)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |