javax.xml.rpc.handler.Handler interface is
required to be implemented by a SOAP message handler. The
handleRequest, handleResponse
and handleFault methods for a SOAP message
handler get access to the SOAPMessage from the
SOAPMessageContext. The implementation of these
methods can modify the SOAPMessage including the
headers and body elements.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public QName[] | Returns: Array of QNames of header blocks processed by this handler instance.QName is the qualified
name of the outermost element of the Header block.Gets the header blocks that can be processed by this Handler instance. |
| public boolean | Returns: boolean Indicates the processing mode
MessageContext parameter provides access to
the SOAP message context)The |
| public boolean | Returns: boolean Indicates the processing mode
MessageContext parameter provides
access to the request message.The |
| public boolean | Returns: boolean Indicates the processing mode
MessageContext parameter provides access to
the response SOAP message context)The |
| public void | init(HandlerInfo
Configuration for the initialization of
this handler config)The |
| destroy | back to summary |
|---|---|
| public void destroy() The
| |
| getHeaders | back to summary |
|---|---|
| public QName[] getHeaders() Gets the header blocks that can be processed by this Handler instance.
| |
| handleFault | back to summary |
|---|---|
| public boolean handleFault(MessageContext context) The
| |
| handleRequest | back to summary |
|---|---|
| public boolean handleRequest(MessageContext context) The
| |
| handleResponse | back to summary |
|---|---|
| public boolean handleResponse(MessageContext context) The
| |
| init | back to summary |
|---|---|
| public void init(HandlerInfo config) The In the init method, the Handler class may get access to any resources (for example; access to a logging service or database) and maintain these as part of its instance variables. Note that these instance variables must not have any state specific to the SOAP message processing performed in the various handle method.
| |