Package org.jboss.ws.api.handler
Class GenericHandler<C extends MessageContext>
- java.lang.Object
-
- org.jboss.ws.api.handler.GenericHandler<C>
-
- All Implemented Interfaces:
Handler<C>
- Direct Known Subclasses:
GenericLogicalHandler,GenericSOAPHandler
public abstract class GenericHandler<C extends MessageContext> extends Object implements Handler<C>
A generic JAX-WS handler- Since:
- 13-Aug-2006
- Author:
- Thomas Diesler, Alessio Soldano
-
-
Constructor Summary
Constructors Constructor Description GenericHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(MessageContext messageContext)Called at the conclusion of a message exchange pattern just prior to the Jakarta XML Web Services runtime dispatching a message, fault or exception.StringgetHandlerName()booleanhandleFault(C messagecontext)ThehandleFaultmethod is invoked for fault message processing.protected booleanhandleInbound(C msgContext)booleanhandleMessage(C msgContext)ThehandleMessagemethod is invoked for normal processing of inbound and outbound messages.protected booleanhandleOutbound(C msgContext)voidsetHandlerName(String handlerName)StringtoString()
-
-
-
Method Detail
-
getHandlerName
public String getHandlerName()
-
setHandlerName
public void setHandlerName(String handlerName)
-
handleMessage
public boolean handleMessage(C msgContext)
Description copied from interface:HandlerThehandleMessagemethod is invoked for normal processing of inbound and outbound messages. Refer to the description of the handler framework in the Jakarta XML Web Services specification for full details.- Specified by:
handleMessagein interfaceHandler<C extends MessageContext>- Parameters:
msgContext- the message context.- Returns:
- An indication of whether handler processing should continue for
the current message
- Return
trueto continue processing. - Return
falseto block processing.
- Return
-
handleOutbound
protected boolean handleOutbound(C msgContext)
-
handleInbound
protected boolean handleInbound(C msgContext)
-
handleFault
public boolean handleFault(C messagecontext)
Description copied from interface:HandlerThehandleFaultmethod is invoked for fault message processing. Refer to the description of the handler framework in the Jakarta XML Web Services specification for full details.- Specified by:
handleFaultin interfaceHandler<C extends MessageContext>- Parameters:
messagecontext- the message context- Returns:
- An indication of whether handler fault processing should continue
for the current message
- Return
trueto continue processing. - Return
falseto block processing.
- Return
-
close
public void close(MessageContext messageContext)
Description copied from interface:HandlerCalled at the conclusion of a message exchange pattern just prior to the Jakarta XML Web Services runtime dispatching a message, fault or exception. Refer to the description of the handler framework in the Jakarta XML Web Services specification for full details.- Specified by:
closein interfaceHandler<C extends MessageContext>- Parameters:
messageContext- the message context
-
-