Method Summary |
|
public void | activate(ConfigurationContext cc) This method checks to see if additional work needs to be
done in order to complete the object reconstitution.
Some parts of the object restored from the readExternal()
cannot be completed until we have a configurationContext
from the active engine. |
public void | activateWithOperationContext(OperationContext operationCtx) This method checks to see if additional work needs to be
done in order to complete the object reconstitution. |
public void | addAttachment(String contentID, DataHandler dataHandler) Adds an attachment to the attachment Map of this message context. |
public String | addAttachment(DataHandler dataHandler) Adds an attachment to the attachment Map of this message context. |
public void | addExecutedPhase(Handler phase) Add a Phase to the collection of executed phases for the path. |
public void | addRelatesTo(RelatesTo reference) |
public boolean | containsSelfManagedDataKey(Class clazz, Object key) |
public MessageContext | extractCopyMessageContext() Return a Read-Only copy of this message context
that has been extracted from the object
hierachy. |
public DataHandler | getAttachment(String contentID) Access the DataHandler of the attachment contained in the map corresponding to the given
content ID. |
public Attachments | getAttachmentMap() You can directly access the attachment map of the message context from
here. |
public AxisMessage | getAxisMessage() |
public AxisOperation | getAxisOperation() |
public AxisService | getAxisService() |
public AxisServiceGroup | getAxisServiceGroup() |
public ConfigurationContext | getConfigurationContext() |
public int | getCurrentHandlerIndex() |
public static MessageContext | getCurrentMessageContext() |
public int | getCurrentPhaseIndex() |
public Policy | getEffectivePolicy() |
public SOAPEnvelope | getEnvelope() |
public Iterator | getExecutedPhases() Get an iterator over the executed phase list. |
public ArrayList | getExecutionChain() |
public int | getFLOW() |
public Exception | getFailureReason() Obtain the Exception which caused the processing chain to halt. |
public EndpointReference | getFaultTo() |
public EndpointReference | getFrom() |
public String | getIncomingTransportName() |
public String | getLogCorrelationID() Get a "raw" version of the logCorrelationID. |
public String | getLogIDString() Get a formatted version of the logCorrelationID.
A string that can be output to a log file as an identifierfor this MessageContext. |
public String | getMessageID() |
public Parameter | getModuleParameter(String key, String moduleName, HandlerDescription handler) Retrieves both module specific configuration parameters as well as other
parameters. |
public OperationContext | getOperationContext() |
public Options | getOptions() |
public Parameter | getParameter(String key) Retrieves configuration descriptor parameters at any level. |
public Map | getProperties() Retrieves all property values. |
public Object | getProperty(String name) Retrieves a property value. |
public RelatesTo | getRelatesTo(String type) |
public RelatesTo | getRelatesTo() |
public RelatesTo[] | getRelationships() |
public EndpointReference | getReplyTo() |
public ConfigurationContext | getRootContext() |
public Object | getSelfManagedData(Class clazz, Object key) Retrieve a value of self managed data previously saved with the specified key. |
public ServiceContext | getServiceContext() |
public String | getServiceContextID() |
public ServiceGroupContext | getServiceGroupContext() |
public String | getServiceGroupContextId() |
public SessionContext | getSessionContext() |
public String | getSoapAction() |
public EndpointReference | getTo() |
public TransportInDescription | getTransportIn() |
public TransportOutDescription | getTransportOut() |
public String | getWSAAction() |
public boolean | isDoingMTOM() |
public boolean | isDoingREST() |
public boolean | isDoingSwA() |
public boolean | isEngaged(String moduleName) |
public boolean | isFault() |
public boolean | isHeaderPresent() Gets the first child of the envelope, check if it is a soap:Body, which means there is no header.
We do this basically to make sure we don't parse and build the om tree of the whole envelope
looking for the soap header. |
public boolean | isNewThreadRequired() |
public boolean | isOutputWritten() |
public boolean | isPaused() |
public boolean | isProcessingFault() |
public boolean | isPropertyTrue(String name) Check if a given property is true. |
public boolean | isPropertyTrue(String name, boolean defaultVal) Check if a given property is true. |
public boolean | isResponseWritten() |
public boolean | isSOAP11() |
public boolean | isServerSide() |
public void | pause() |
public void | readExternal(ObjectInput in) Restore the contents of the MessageContext that was
previously saved.
NOTE: The field data must read back in the same order and type
as it was written. |
public void | removeAttachment(String contentID) Removes the attachment with the given content ID from the Attachments Map
Do nothing if a attachment cannot be found by the given content ID. |
public void | removeFirstExecutedPhase() |
public void | removeSelfManagedData(Class clazz, Object key) |
public void | resetExecutedPhases() Reset the list of executed phases. |
public void | setAttachmentMap(Attachments attachments) Setting of the attachments map should be performed at the receipt of a
message only. |
public void | setAxisMessage(AxisMessage axisMessage) |
public void | setAxisOperation(AxisOperation axisOperation) |
public void | setAxisService(AxisService axisService) |
public void | setAxisServiceGroup(AxisServiceGroup axisServiceGroup) |
public void | setConfigurationContext(ConfigurationContext context) |
public void | setCurrentHandlerIndex(int currentHandlerIndex) |
public static void | setCurrentMessageContext(MessageContext ctx) |
public void | setCurrentPhaseIndex(int currentPhaseIndex) |
public void | setDoingMTOM(boolean b) |
public void | setDoingREST(boolean b) |
public void | setDoingSwA(boolean b) |
public void | setEnvelope(SOAPEnvelope envelope) |
public void | setExecutedPhasesExplicit(LinkedList inb) |
public void | setExecutionChain(ArrayList executionChain) Set the execution chain of Handler in this MessageContext. |
public void | setFLOW(int FLOW) |
public void | setFailureReason(Exception failureReason) Set the failure reason. |
public void | setFaultTo(EndpointReference reference) |
public void | setFrom(EndpointReference reference) |
public void | setIncomingTransportName(String incomingTransportName) |
public void | setIsSOAP11Explicit(boolean t) |
public void | setMessageID(String messageId) |
public void | setNewThreadRequired(boolean b) |
public void | setOperationContext(OperationContext context) |
public void | setOptions(Options options) Set the options for myself. |
public void | setOptionsExplicit(Options op) |
public void | setOutputWritten(boolean b) |
public void | setPaused(boolean paused) |
public void | setProcessingFault(boolean b) |
public void | setRelationships(RelatesTo[] list) |
public void | setReplyTo(EndpointReference reference) |
public void | setResponseWritten(boolean b) |
public void | setSelfManagedData(Class clazz, Object key, Object value) Add a key-value pair of self managed data to the set associated with
this message context. |
public void | setSelfManagedDataMapExplicit(LinkedHashMap map) |
public void | setServerSide(boolean b) |
public void | setServiceContext(ServiceContext context) |
public void | setServiceContextID(String serviceContextID) Sets the service context id. |
public void | setServiceGroupContext(ServiceGroupContext serviceGroupContext) |
public void | setServiceGroupContextId(String serviceGroupContextId) |
public void | setSessionContext(SessionContext sessionContext) |
public void | setSoapAction(String soapAction) |
public void | setTo(EndpointReference to) |
public void | setTransportIn(TransportInDescription in) |
public void | setTransportOut(TransportOutDescription out) |
public void | setWSAAction(String actionURI) |
public void | setWSAMessageId(String messageID) |
public String | toString() |
public void | writeExternal(ObjectOutput out) Save the contents of this MessageContext instance. |