|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A handler provides a mechanism for processing of service context, plugging in additional RPC processing behavior and enhancing functionality of a JAX-RPC runtime system.
A JAX-RPC handler is required to implement the
javax.xml.rpc.handler.Handler
interface.
Method Summary | |
void |
destroy()
The destroy method indicates the end of lifecycle for a Handler instance. |
QName[] |
getHeaders()
Gets the header blocks processed by this Handler instance. |
void |
handleFault(MessageContext context)
The handleFault method processes the SOAP faults based on the SOAP message processing model. |
boolean |
handleRequest(MessageContext context)
The handleRequest method processes the request message. |
boolean |
handleResponse(MessageContext context)
The handleResponse method processes the response message. |
void |
init(HandlerInfo config)
The init method to enable the Handler instance to initialize itself. |
Method Detail |
public boolean handleRequest(MessageContext context)
context
- - MessageContext parameter provides access to the request
message.JAXRPCException
- - if any handler specific runtime error happens.
The HandlerChain terminates the further processing of this
handler chain.
SOAPFaultException - if SOAP fault is generated by this handler.
The HandlerChain catches this exception, terminates the further
processing of the request handlers in this handler chain and
invokes the handleFault method on this handlerpublic boolean handleResponse(MessageContext context)
context
- - MessageContext parameter provides access to the response
messageJAXRPCException
- - if any handler specific runtime error happens.
The HandlerChain terminates the further processing of this handler
chain.public void handleFault(MessageContext context)
context
- - MessageContext parameter provides access to the SOAP
message.JAXRPCException
- - if any handler specific runtime errorpublic void init(HandlerInfo config)
HandlerInfo
- - Configuration for the initialization of this handlerJAXRPCException
- - If initialization of the handler failspublic void destroy()
JAXRPCException
- If any error during destroypublic QName[] getHeaders()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |