Class SoapHeaderMatcher
java.lang.Object
org.springframework.ws.test.support.matcher.AbstractSoapMessageMatcher
org.springframework.ws.test.support.matcher.SoapHeaderMatcher
- All Implemented Interfaces:
WebServiceMessageMatcher
Matches SOAP headers.
- Since:
- 2.0
- Author:
- Arjen Poutsma
-
Constructor Summary
ConstructorsConstructorDescriptionSoapHeaderMatcher(QName soapHeaderName) Creates a new instance of theSoapHeaderMatcherthat checks for the presence of the given SOAP header name. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidmatch(SoapMessage soapMessage) Abstract template method that gets invoked fromAbstractSoapMessageMatcher.match(WebServiceMessage)if the given message is aSoapMessage.Methods inherited from class org.springframework.ws.test.support.matcher.AbstractSoapMessageMatcher
match
-
Constructor Details
-
SoapHeaderMatcher
Creates a new instance of theSoapHeaderMatcherthat checks for the presence of the given SOAP header name.- Parameters:
soapHeaderName- the header name to check for
-
-
Method Details
-
match
Description copied from class:AbstractSoapMessageMatcherAbstract template method that gets invoked fromAbstractSoapMessageMatcher.match(WebServiceMessage)if the given message is aSoapMessage.- Specified by:
matchin classAbstractSoapMessageMatcher- Parameters:
soapMessage- the soap message- Throws:
IOException- in case of I/O errorsAssertionError- if expectations are not met
-