|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(java.lang.String uri)
Expects a connection to the given URI. |
static RequestMatcher |
connectionTo(java.net.URI uri)
Expects a connection to the given URI. |
static RequestMatcher |
payload(org.springframework.core.io.Resource payload)
Expects the given Resource XML payload. |
static RequestMatcher |
payload(javax.xml.transform.Source payload)
Expects the given Source XML payload. |
static RequestMatcher |
soapHeader(javax.xml.namespace.QName soapHeaderName)
Expects the given SOAP header in the outgoing message. |
static RequestMatcher |
validPayload(org.springframework.core.io.Resource schema,
org.springframework.core.io.Resource... furtherSchemas)
Expects the payload to validate against the given XSD schema(s). |
static RequestXPathExpectations |
xpath(java.lang.String xpathExpression)
Expects the given XPath expression to (not) exist or be evaluated to a value. |
static RequestXPathExpectations |
xpath(java.lang.String xpathExpression,
java.util.Map<java.lang.String,java.lang.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(javax.xml.transform.Source payload)
Source XML payload.
payload - the XML payload
public static RequestMatcher payload(org.springframework.core.io.Resource payload)
throws java.io.IOException
Resource XML payload.
payload - the XML payload
java.io.IOException
public static RequestMatcher validPayload(org.springframework.core.io.Resource schema,
org.springframework.core.io.Resource... furtherSchemas)
throws java.io.IOException
schema - the schemafurtherSchemas - further schemas, if necessary
java.io.IOExceptionpublic static RequestXPathExpectations xpath(java.lang.String xpathExpression)
xpathExpression - the XPath expression
public static RequestXPathExpectations xpath(java.lang.String xpathExpression,
java.util.Map<java.lang.String,java.lang.String> namespaceMapping)
xpathExpression - the XPath expressionnamespaceMapping - the namespaces
public static RequestMatcher soapHeader(javax.xml.namespace.QName soapHeaderName)
soapHeaderName - the qualified name of the SOAP header to expect
public static RequestMatcher connectionTo(java.lang.String uri)
uri - the String uri expected to connect to
public static RequestMatcher connectionTo(java.net.URI uri)
uri - the String uri expected to connect to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||