Package org.apache.axis2.scripting
Class ScriptMessageContext
- java.lang.Object
-
- org.apache.axis2.context.AbstractContext
-
- org.apache.axis2.context.MessageContext
-
- org.apache.axis2.scripting.ScriptMessageContext
-
- All Implemented Interfaces:
Externalizable
,Serializable
,SafeSerializable
public class ScriptMessageContext extends MessageContext
ScriptMessageContext decorates the Axis2 MessageContext adding methods to use the message payload XML in a way natural to the scripting language.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.axis2.context.MessageContext
attachments, CHARACTER_SET_ENCODING, CLIENT_API_NON_BLOCKING, currentMessageContext, DEFAULT_CHAR_SET_ENCODING, DISABLE_ASYNC_CALLBACK_ON_TRANSPORT_ERROR, FLOW, IN_FAULT_FLOW, IN_FLOW, IN_MESSAGE_CONTEXT, options, OUT_FAULT_FLOW, OUT_FLOW, outputWritten, REMOTE_ADDR, TRANSPORT_ADDR, TRANSPORT_HEADERS, TRANSPORT_IN, TRANSPORT_OUT, TRANSPORT_SUCCEED, UTF_16, UTF_8
-
Fields inherited from class org.apache.axis2.context.AbstractContext
COPY_PROPERTIES, lastTouchedTime, parent, properties
-
-
Constructor Summary
Constructors Constructor Description ScriptMessageContext(MessageContext mc, OMElementConvertor convertor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getEnvelopeXML()
Get the XML representation of the complete SOAP envelopeObject
getPayloadXML()
Get the XML representation of SOAP Body payload.void
setFaultTo(String reference)
void
setFrom(String reference)
void
setPayloadXML(Object payload)
Set the SOAP body payload from XMLvoid
setReplyTo(String reference)
void
setTo(String reference)
-
Methods inherited from class org.apache.axis2.context.MessageContext
activate, activateWithOperationContext, addAttachment, addAttachment, addExecutedPhase, addRelatesTo, containsSelfManagedDataKey, destroyCurrentMessageContext, extractCopyMessageContext, findEndpoint, getAttachment, getAttachmentMap, getAttachmentMap, getAxisMessage, getAxisOperation, getAxisService, getAxisServiceGroup, getConfigurationContext, getCurrentHandlerIndex, getCurrentMessageContext, getCurrentPhaseIndex, getEffectivePolicy, getEnvelope, getExecutedPhases, getExecutionChain, getFailureReason, getFaultTo, getFLOW, getFrom, getIncomingTransportName, getLocalProperty, getLocalProperty, getLogCorrelationID, getLogIDString, getMessageID, getModuleParameter, getOperationContext, getOptions, getParameter, getProperties, getProperty, getRelatesTo, getRelatesTo, getRelationships, getReplyTo, getRootContext, getSelfManagedData, getServiceContext, getServiceContextID, getServiceGroupContext, getServiceGroupContextId, getSessionContext, getSoapAction, getTo, getTransportIn, getTransportOut, getWSAAction, isDoingMTOM, isDoingREST, isDoingSwA, isEngaged, isFault, isHeaderPresent, isNewThreadRequired, isOutputWritten, isPaused, isProcessingFault, isPropertyTrue, isPropertyTrue, isResponseWritten, isServerSide, isSOAP11, pause, readExternal, removeAttachment, removeFirstExecutedPhase, removeSelfManagedData, resetExecutedPhases, setAttachmentMap, setAxisMessage, setAxisOperation, setAxisService, setAxisServiceGroup, setConfigurationContext, setCurrentHandlerIndex, setCurrentMessageContext, setCurrentPhaseIndex, setDoingMTOM, setDoingREST, setDoingSwA, setEnvelope, setExecutedPhasesExplicit, setExecutionChain, setFailureReason, setFaultTo, setFLOW, setFrom, setIncomingTransportName, setIsSOAP11Explicit, setMessageID, setNewThreadRequired, setOperationContext, setOptions, setOptionsExplicit, setOutputWritten, setPaused, setProcessingFault, setRelationships, setReplyTo, setResponseWritten, setSelfManagedData, setSelfManagedDataMapExplicit, setServerSide, setServiceContext, setServiceContextID, setServiceGroupContext, setServiceGroupContextId, setSessionContext, setSoapAction, setTo, setTransportIn, setTransportOut, setWSAAction, setWSAMessageId, toString, writeExternal
-
Methods inherited from class org.apache.axis2.context.AbstractContext
clearPropertyDifferences, flush, getLastTouchedTime, getParent, getPropertyDifferences, getPropertyNames, getPropertyNonReplicable, isAncestor, mergeProperties, removeProperty, removePropertyNonReplicable, setLastTouchedTime, setNonReplicableProperty, setParent, setProperties, setProperty, touch
-
-
-
-
Constructor Detail
-
ScriptMessageContext
public ScriptMessageContext(MessageContext mc, OMElementConvertor convertor)
-
-
Method Detail
-
getPayloadXML
public Object getPayloadXML()
Get the XML representation of SOAP Body payload. The payload is the first element inside the SOAP tags- Returns:
- the XML SOAP Body
-
setPayloadXML
public void setPayloadXML(Object payload)
Set the SOAP body payload from XML- Parameters:
payload
-- Throws:
XMLStreamException
-
getEnvelopeXML
public Object getEnvelopeXML()
Get the XML representation of the complete SOAP envelope
-
setTo
public void setTo(String reference)
-
setFaultTo
public void setFaultTo(String reference)
-
setFrom
public void setFrom(String reference)
-
setReplyTo
public void setReplyTo(String reference)
-
-