Interface MessageHandler<C extends MessageHandlerContext>

All Superinterfaces:
jakarta.xml.ws.handler.Handler<C>

public interface MessageHandler<C extends MessageHandlerContext> extends jakarta.xml.ws.handler.Handler<C>
The MessageHandler class extends Handler to provide typesafety for the message context parameter and add a method to obtain access to the headers that may be processed by the handler. Its provides similar functionality as a SOAPHandler but provides RI's Message in the MessageContext.
Since:
JAX-WS 2.1.3
Author:
Rama Pulavarthi
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the header blocks that can be processed by this Handler instance.

    Methods inherited from interface jakarta.xml.ws.handler.Handler

    close, handleFault, handleMessage
  • Method Details

    • getHeaders

      Set<QName> getHeaders()
      Gets the header blocks that can be processed by this Handler instance.
      Returns:
      Set of QNames of header blocks processed by this handler instance. QName is the qualified name of the outermost element of the Header block.