public abstract class AbstractTemplatedHandler extends AbstractHandler
AbstractHandlerHandler.InvocationResponsehandlerDesc| 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
|
flowComplete, getHandlerDesc, getName, getParameter, init, toStringpublic 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 continuedAxisFault - 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#SUSPENDAxisFault - in an error in invoking the handlerCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.