org.springframework.ws.test.support.matcher
Class SoapHeaderMatcher
java.lang.Object
org.springframework.ws.test.support.matcher.AbstractSoapMessageMatcher
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.