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
ConstructorDescriptionSoapHeaderMatcher
(QName soapHeaderName) Creates a new instance of theSoapHeaderMatcher
that checks for the presence of the given SOAP header name. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
match
(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 theSoapHeaderMatcher
that 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:AbstractSoapMessageMatcher
Abstract template method that gets invoked fromAbstractSoapMessageMatcher.match(WebServiceMessage)
if the given message is aSoapMessage
.- Specified by:
match
in classAbstractSoapMessageMatcher
- Parameters:
soapMessage
- the soap message- Throws:
IOException
- in case of I/O errorsAssertionError
- if expectations are not met
-