Interface MessageHandlerContext

All Superinterfaces:
Map<String,Object>, jakarta.xml.ws.handler.MessageContext
All Known Implementing Classes:
MessageHandlerContextImpl

public interface MessageHandlerContext extends jakarta.xml.ws.handler.MessageContext
The MessageHandlerContext interface extends MessageContext to provide easy access to the contained message. This context provides access to RI's Message model for efficient access to various things like accessing headers etc. It also provides access to binding information as WSBinding.
Since:
JAX-WS 2.1.3
Author:
Rama Pulavarthi
  • Method Details

    • getMessage

      Message getMessage()
      Gets the message from this message context
      Returns:
      The contained message; returns null if no message is present in this message context
    • setMessage

      void setMessage(Message message)
      Sets the message in this message context
    • getRoles

      Set<String> getRoles()
      See Also:
      • SOAPMessageContext.getRoles()
    • getWSBinding

      WSBinding getWSBinding()
      Provides access to WSBinding which can be used in various ways. for example: WSBinding#getSOAPVersion to get SOAP version of the binding. WSBinding#isFeatureEnabled(AddressingFeature) to check if addressing is enabled
    • getSEIModel

      @Nullable SEIModel getSEIModel()
      Provides access to SEIModel.
    • getPort

      @Nullable WSDLPort getPort()
      Gets the WSDLPort that represents the port.
      Returns:
      returns the WSDLModel of the port that the client/endpoint binds to. null when the Service is not configured with WSDL information.