|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Handler
A Handler represents a piece of message processing functionality in Axis2. Handlers are combined into chains and phases in order to provide customizable functionality such as security, reliability, etc. Handlers must be multi-thread safe and should keep all their state in Context objects (see the org.apache.axis2.context package).
Nested Class Summary | |
---|---|
static class |
Handler.InvocationResponse
This type encapsulates an enumeration of possible message processing instruction values that may be returned by a handler/phase within the runtime. |
Method Summary | |
---|---|
void |
cleanup()
Deprecated. This method will be going away after the 1.3 release, it was never used. |
void |
flowComplete(MessageContext msgContext)
This method will be called on each registered handler that had its invoke(...) method called during the processing of the message, once the message processing has completed. |
HandlerDescription |
getHandlerDesc()
Gets the HandlerDescription of a handler. |
java.lang.String |
getName()
Return the name of this Handler |
Parameter |
getParameter(java.lang.String name)
Get a Parameter from this Handler |
void |
init(HandlerDescription handlerDesc)
Initialize a Handler. |
Handler.InvocationResponse |
invoke(MessageContext msgContext)
This method will be called on each registered handler when a message needs to be processed. |
Method Detail |
---|
void cleanup()
void init(HandlerDescription handlerDesc)
handlerDesc
- the HandlerDescription for this HandlerHandler.InvocationResponse invoke(MessageContext msgContext) throws AxisFault
msgContext
- the MessageContext
to process with this
Handler
.
AxisFault
- if the handler encounters an errorvoid flowComplete(MessageContext msgContext)
msgContext
- the MessageContext
to process with this
Handler
.HandlerDescription getHandlerDesc()
java.lang.String getName()
Parameter getParameter(java.lang.String name)
name
- the name of the desired value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |