Spring Web Services Framework

org.springframework.ws.test.support.matcher
Class SoapHeaderMatcher

java.lang.Object
  extended by org.springframework.ws.test.support.matcher.AbstractSoapMessageMatcher
      extended by org.springframework.ws.test.support.matcher.SoapHeaderMatcher
All Implemented Interfaces:
WebServiceMessageMatcher

public class SoapHeaderMatcher
extends AbstractSoapMessageMatcher

Matches SOAP headers.

Since:
2.0
Author:
Arjen Poutsma

Constructor Summary
SoapHeaderMatcher(QName soapHeaderName)
          Creates a new instance of the SoapHeaderMatcher that checks for the presence of the given SOAP header name.
 
Method Summary
protected  void match(SoapMessage soapMessage)
          Abstract template method that gets invoked from AbstractSoapMessageMatcher.match(WebServiceMessage) if the given message is a SoapMessage.
 
Methods inherited from class org.springframework.ws.test.support.matcher.AbstractSoapMessageMatcher
match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapHeaderMatcher

public SoapHeaderMatcher(QName soapHeaderName)
Creates a new instance of the SoapHeaderMatcher that checks for the presence of the given SOAP header name.

Parameters:
soapHeaderName - the header name to check for
Method Detail

match

protected void match(SoapMessage soapMessage)
              throws IOException,
                     AssertionError
Description copied from class: AbstractSoapMessageMatcher
Abstract template method that gets invoked from AbstractSoapMessageMatcher.match(WebServiceMessage) if the given message is a SoapMessage.

Specified by:
match in class AbstractSoapMessageMatcher
Parameters:
soapMessage - the soap message
Throws:
IOException - in case of I/O errors
AssertionError - if expectations are not met

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.