|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ws.test.client.RequestMatchers
public abstract class RequestMatchers
Factory methods for RequestMatcher
classes. Typically used to provide input for MockWebServiceServer.expect(RequestMatcher)
.
Method Summary | |
---|---|
static RequestMatcher |
anything()
Expects any request. |
static RequestMatcher |
connectionTo(String uri)
Expects a connection to the given URI. |
static RequestMatcher |
connectionTo(URI uri)
Expects a connection to the given URI. |
static RequestMatcher |
payload(Resource payload)
Expects the given Resource XML payload. |
static RequestMatcher |
payload(Source payload)
Expects the given Source XML payload. |
static RequestMatcher |
soapEnvelope(Resource soapEnvelope)
Expects the given Resource XML SOAP envelope. |
static RequestMatcher |
soapEnvelope(Source soapEnvelope)
Expects the given Source XML SOAP envelope. |
static RequestMatcher |
soapHeader(QName soapHeaderName)
Expects the given SOAP header in the outgoing message. |
static RequestMatcher |
validPayload(Resource schema,
Resource... furtherSchemas)
Expects the payload to validate against the given XSD schema(s). |
static RequestXPathExpectations |
xpath(String xpathExpression)
Expects the given XPath expression to (not) exist or be evaluated to a value. |
static RequestXPathExpectations |
xpath(String xpathExpression,
Map<String,String> namespaceMapping)
Expects the given XPath expression to (not) exist or be evaluated to a value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RequestMatcher anything()
public static RequestMatcher payload(Source payload)
Source
XML payload.
payload
- the XML payload
public static RequestMatcher payload(Resource payload) throws IOException
Resource
XML payload.
payload
- the XML payload
IOException
public static RequestMatcher validPayload(Resource schema, Resource... furtherSchemas) throws IOException
schema
- the schemafurtherSchemas
- further schemas, if necessary
IOException
public static RequestXPathExpectations xpath(String xpathExpression)
xpathExpression
- the XPath expression
public static RequestXPathExpectations xpath(String xpathExpression, Map<String,String> namespaceMapping)
xpathExpression
- the XPath expressionnamespaceMapping
- the namespaces
public static RequestMatcher soapEnvelope(Source soapEnvelope)
Source
XML SOAP envelope.
soapEnvelope
- the XML SOAP envelope
public static RequestMatcher soapEnvelope(Resource soapEnvelope) throws IOException
Resource
XML SOAP envelope.
soapEnvelope
- the XML SOAP envelope
IOException
public static RequestMatcher soapHeader(QName soapHeaderName)
soapHeaderName
- the qualified name of the SOAP header to expect
public static RequestMatcher connectionTo(String uri)
uri
- the String uri expected to connect to
public static RequestMatcher connectionTo(URI uri)
uri
- the String uri expected to connect to
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |