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
ScriptMessageContext decorates the Axis2 MessageContext adding methods to use
the message payload XML in a way natural to the scripting language.
- See Also:
-
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_8Fields inherited from class org.apache.axis2.context.AbstractContext
COPY_PROPERTIES, lastTouchedTime, parent, properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the XML representation of the complete SOAP envelopeGet the XML representation of SOAP Body payload.voidsetFaultTo(String reference) voidvoidsetPayloadXML(Object payload) Set the SOAP body payload from XMLvoidsetReplyTo(String reference) voidMethods inherited from class org.apache.axis2.context.MessageContext
activate, activateWithOperationContext, addAttachment, addAttachment, addAttachment, addExecutedPhase, addRelatesTo, containsSelfManagedDataKey, destroyCurrentMessageContext, extractCopyMessageContext, getAttachment, getAttachmentMap, getAxisMessage, getAxisOperation, getAxisService, getAxisServiceGroup, getConfigurationContext, getCurrentHandlerIndex, getCurrentMessageContext, getCurrentPhaseIndex, getEffectivePolicy, getEnvelope, getExecutedPhases, getExecutionChain, getFailureReason, getFaultTo, getFLOW, getFrom, getInboundContentLength, 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, writeExternalMethods 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 Details
-
ScriptMessageContext
-
-
Method Details
-
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
Set the SOAP body payload from XML- Parameters:
payload-- Throws:
XMLStreamException
-
getEnvelopeXML
Get the XML representation of the complete SOAP envelope -
setTo
-
setFaultTo
-
setFrom
-
setReplyTo
-