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:
jakarta.xml.ws.handler.MessageContext,jakarta.xml.ws.handler.soap.SOAPMessageContext,Map<String,Object>
public class SoapMessageContext
extends BaseMessageContext
implements jakarta.xml.ws.handler.soap.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 jakarta.xml.ws.handler.MessageContext
jakarta.xml.ws.handler.MessageContext.Scope -
Field Summary
Fields inherited from class org.apache.axis2.jaxws.handler.BaseMessageContext
messageCtxFields inherited from interface jakarta.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 -
Method Summary
Modifier and TypeMethodDescriptionvoidCheck the current (cached) SOAPMessage and make sure its internals are consistent with when it was created.Object[]getHeaders(QName qname, jakarta.xml.bind.JAXBContext jaxbcontext, boolean allRoles) jakarta.xml.soap.SOAPMessagegetRoles()voidsetMessage(jakarta.xml.soap.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, valuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, valuesMethods inherited from interface jakarta.xml.ws.handler.MessageContext
getScope, setScope
-
Constructor Details
-
SoapMessageContext
-
-
Method Details
-
getHeaders
- Specified by:
getHeadersin interfacejakarta.xml.ws.handler.soap.SOAPMessageContext
-
getMessage
public jakarta.xml.soap.SOAPMessage getMessage()- Specified by:
getMessagein interfacejakarta.xml.ws.handler.soap.SOAPMessageContext
-
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
- Specified by:
getRolesin interfacejakarta.xml.ws.handler.soap.SOAPMessageContext
-
setMessage
public void setMessage(jakarta.xml.soap.SOAPMessage soapMessage) - Specified by:
setMessagein interfacejakarta.xml.ws.handler.soap.SOAPMessageContext
-