org.codehaus.xfire.soap.handler
Class ValidateHeadersHandler
java.lang.Object
org.codehaus.xfire.handler.AbstractHandler
org.codehaus.xfire.soap.handler.ValidateHeadersHandler
- All Implemented Interfaces:
- Handler
public class ValidateHeadersHandler
- extends AbstractHandler
Validates that headers flagged as "mustUnderstand" are understood.
- Author:
- Dan Diephouse
Fields inherited from interface org.codehaus.xfire.handler.Handler |
ROLE |
Method Summary |
protected void |
assertUnderstandsHeader(MessageContext context,
javax.xml.namespace.QName name)
Assert that a service understands a particular header. |
java.lang.String |
getPhase()
The phase which this handler would like to be in. |
void |
invoke(MessageContext context)
Validates that the mustUnderstand and role headers are processed correctly. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidateHeadersHandler
public ValidateHeadersHandler()
getPhase
public java.lang.String getPhase()
- Description copied from interface:
Handler
- The phase which this handler would like to be in.
- Specified by:
getPhase
in interface Handler
- Overrides:
getPhase
in class AbstractHandler
- Returns:
- See Also:
Phase
invoke
public void invoke(MessageContext context)
throws java.lang.Exception
- Validates that the mustUnderstand and role headers are processed correctly.
- Parameters:
context
-
- Throws:
XFireFault
java.lang.Exception
assertUnderstandsHeader
protected void assertUnderstandsHeader(MessageContext context,
javax.xml.namespace.QName name)
throws XFireFault
- Assert that a service understands a particular header. If not, a fault is thrown.
- Parameters:
context
- name
-
- Throws:
XFireFault
Copyright © 2004-2005 Codehaus. All Rights Reserved.