Package org.apache.axis2.jaxws.handler
Class SoapMessageContext
- java.lang.Object
-
- org.apache.axis2.jaxws.handler.BaseMessageContext
-
- org.apache.axis2.jaxws.handler.SoapMessageContext
-
- All Implemented Interfaces:
Map<String,Object>
,MessageContext
,SOAPMessageContext
public class SoapMessageContext extends BaseMessageContext implements SOAPMessageContext
The SOAPMessageContext is the context handed to SOAP-based application handlers. It provides access to the SOAP message that represents the request or response via SAAJ. It also allows access to any properties that have been registered and set on the MessageContext.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K extends Object,V extends Object>
-
Nested classes/interfaces inherited from interface javax.xml.ws.handler.MessageContext
MessageContext.Scope
-
-
Field Summary
-
Fields inherited from class org.apache.axis2.jaxws.handler.BaseMessageContext
messageCtx
-
Fields inherited from interface javax.xml.ws.handler.MessageContext
HTTP_REQUEST_HEADERS, HTTP_REQUEST_METHOD, HTTP_RESPONSE_CODE, HTTP_RESPONSE_HEADERS, INBOUND_MESSAGE_ATTACHMENTS, MESSAGE_OUTBOUND_PROPERTY, OUTBOUND_MESSAGE_ATTACHMENTS, PATH_INFO, QUERY_STRING, REFERENCE_PARAMETERS, SERVLET_CONTEXT, SERVLET_REQUEST, SERVLET_RESPONSE, WSDL_DESCRIPTION, WSDL_INTERFACE, WSDL_OPERATION, WSDL_PORT, WSDL_SERVICE
-
-
Constructor Summary
Constructors Constructor Description SoapMessageContext(MessageContext messageCtx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkAndUpdate()
Check the current (cached) SOAPMessage and make sure its internals are consistent with when it was created.Object[]
getHeaders(QName qname, JAXBContext jaxbcontext, boolean allRoles)
SOAPMessage
getMessage()
Set<String>
getRoles()
void
setMessage(SOAPMessage soapMessage)
-
Methods inherited from class org.apache.axis2.jaxws.handler.BaseMessageContext
clear, containsKey, containsValue, entrySet, get, getScope, isEmpty, keySet, put, putAll, remove, setScope, size, values
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from interface javax.xml.ws.handler.MessageContext
getScope, setScope
-
-
-
-
Constructor Detail
-
SoapMessageContext
public SoapMessageContext(MessageContext messageCtx)
-
-
Method Detail
-
getHeaders
public Object[] getHeaders(QName qname, JAXBContext jaxbcontext, boolean allRoles)
- Specified by:
getHeaders
in interfaceSOAPMessageContext
-
getMessage
public SOAPMessage getMessage()
- Specified by:
getMessage
in interfaceSOAPMessageContext
-
checkAndUpdate
public void checkAndUpdate()
Check the current (cached) SOAPMessage and make sure its internals are consistent with when it was created. If not, the Message is recreated.
-
getRoles
public Set<String> getRoles()
- Specified by:
getRoles
in interfaceSOAPMessageContext
-
setMessage
public void setMessage(SOAPMessage soapMessage)
- Specified by:
setMessage
in interfaceSOAPMessageContext
-
-