public abstract class AbstractTemplatedHandler extends AbstractHandler
AbstractHandler
Handler.InvocationResponse
handlerDesc
Constructor and Description |
---|
AbstractTemplatedHandler() |
Modifier and Type | Method and Description |
---|---|
abstract Handler.InvocationResponse |
doInvoke(MessageContext msgCtx)
This should implement the actual handler invocation logic.
|
Handler.InvocationResponse |
invoke(MessageContext msgContext)
Implements the separation of the conditional check and the actual logic
|
abstract boolean |
shouldInvoke(MessageContext msgCtx)
This method should implement the conditional check of the handler to decide whether this
particular message needs to be handled by me
|
cleanup, flowComplete, getHandlerDesc, getName, getParameter, init, toString
public final Handler.InvocationResponse invoke(MessageContext msgContext) throws AxisFault
msgContext
- the MessageContext
to process with this Handler
.doInvoke(org.apache.axis2.context.MessageContext)
AxisFault
- if the doInvoke(org.apache.axis2.context.MessageContext)
throws the samepublic abstract boolean shouldInvoke(MessageContext msgCtx) throws AxisFault
msgCtx
- current MessageContext
to be evaluatedtrue, if this handler needs to be further invoked,
false
if this handler has nothing to do with this specific message
and want the flow to be continued
AxisFault
- in an error in evaluating the decisionpublic abstract Handler.InvocationResponse doInvoke(MessageContext msgCtx) throws AxisFault
msgCtx
- current message to be handled by this handlerInvocationResponse#CONTINUE
,
InvocationResponse#ABORT
, InvocationResponse#SUSPEND
AxisFault
- in an error in invoking the handlerCopyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.