org.apache.axis2.jaxws.dispatchers
Class MustUnderstandChecker
java.lang.Object
org.apache.axis2.handlers.AbstractHandler
org.apache.axis2.handlers.AbstractTemplatedHandler
org.apache.axis2.jaxws.dispatchers.MustUnderstandChecker
- All Implemented Interfaces:
- Handler
public class MustUnderstandChecker
- extends AbstractTemplatedHandler
Plugin to remove "understood" headers for the JAXWS related headers. This class must
be configured in the axis2.xml file on both the client and the server.
Understood headers (per JAXWS 2.0 Section 10.2) include
- Headers that correspond to SEI method parameters.
MustUnderstandChecker
public MustUnderstandChecker()
shouldInvoke
public boolean shouldInvoke(MessageContext msgContext)
throws AxisFault
- Description copied from class:
AbstractTemplatedHandler
- This method should implement the conditional check of the handler to decide whether this
particular message needs to be handled by me
- Specified by:
shouldInvoke
in class AbstractTemplatedHandler
- Parameters:
msgContext
- current MessageContext
to be evaluated
- Returns:
- boolean
true, 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
- Throws:
AxisFault
- in an error in evaluating the decision
doInvoke
public Handler.InvocationResponse doInvoke(MessageContext msgContext)
throws AxisFault
- Description copied from class:
AbstractTemplatedHandler
- This should implement the actual handler invocation logic.
- Specified by:
doInvoke
in class AbstractTemplatedHandler
- Parameters:
msgContext
- current message to be handled by this handler
- Returns:
- flow completion decision, should be one of
InvocationResponse#CONTINUE
,
InvocationResponse#ABORT
, InvocationResponse#SUSPEND
- Throws:
AxisFault
- in an error in invoking the handler
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.