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.
  • Constructor Details

    • SoapMessageContext

      public SoapMessageContext(MessageContext messageCtx)
  • Method Details

    • getHeaders

      public Object[] getHeaders(QName qname, jakarta.xml.bind.JAXBContext jaxbcontext, boolean allRoles)
      Specified by:
      getHeaders in interface jakarta.xml.ws.handler.soap.SOAPMessageContext
    • getMessage

      public jakarta.xml.soap.SOAPMessage getMessage()
      Specified by:
      getMessage in interface jakarta.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

      public Set<String> getRoles()
      Specified by:
      getRoles in interface jakarta.xml.ws.handler.soap.SOAPMessageContext
    • setMessage

      public void setMessage(jakarta.xml.soap.SOAPMessage soapMessage)
      Specified by:
      setMessage in interface jakarta.xml.ws.handler.soap.SOAPMessageContext