01: package com.sun.xml.ws.api.handler;
02:
03: import javax.xml.ws.handler.Handler;
04: import javax.xml.namespace.QName;
05: import java.util.Set;
06:
07: /**
08: * The <code>MessageHandler</code> class extends <code>Handler</code>
09: * to provide typesafety for the message context parameter and add a method
10: * to obtain access to the headers that may be processed by the handler.
11: * Its provides similar functionality as a SOAPHandler but provides RI's
12: * Message in the MessageContext.
13: *
14: * @author Rama Pulavarthi
15: * @since JAX-WS 2.1.3
16: */
17: public interface MessageHandler<C extends MessageHandlerContext>
18: extends Handler<C> {
19:
20: /** Gets the header blocks that can be processed by this Handler
21: * instance.
22: *
23: * @return Set of <code>QNames</code> of header blocks processed by this
24: * handler instance. <code>QName</code> is the qualified
25: * name of the outermost element of the Header block.
26: **/
27: Set<QName> getHeaders();
28:
29: }
|