org.codehaus.xfire.soap.handler
Class ValidateHeadersHandler

java.lang.Object
  extended by org.codehaus.xfire.handler.AbstractHandler
      extended by 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

Field Summary
 
Fields inherited from interface org.codehaus.xfire.handler.Handler
ROLE
 
Constructor Summary
ValidateHeadersHandler()
           
 
Method Summary
protected  void assertUnderstandsHeader(MessageContext context, javax.xml.namespace.QName name)
          Assert that a service understands a particular header.
 void invoke(MessageContext context)
          Validates that the mustUnderstand and role headers are processed correctly.
 
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
 

Constructor Detail

ValidateHeadersHandler

public ValidateHeadersHandler()
Method Detail

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-2008. All Rights Reserved.