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 |
Methods inherited from class org.codehaus.xfire.handler.AbstractHandler |
after, before, getAfter, getBefore, getPhase, getRoles, getUnderstoodHeaders, handleFault, setAfter, setBefore, setPhase |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidateHeadersHandler
public ValidateHeadersHandler()
invoke
public void invoke(MessageContext context)
throws Exception
- Validates that the mustUnderstand and role headers are processed correctly.
- Parameters:
context
-
- Throws:
XFireFault
Exception
assertUnderstandsHeader
protected void assertUnderstandsHeader(MessageContext context,
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-2013. All Rights Reserved.