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(javax.xml.namespace.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(org.springframework.ws.soap.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(javax.xml.namespace.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(org.springframework.ws.soap.SoapMessage soapMessage)
              throws java.io.IOException,
                     java.lang.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:
java.io.IOException - in case of I/O errors
java.lang.AssertionError - if expectations are not met


Copyright © 2011. All Rights Reserved.