|
Spring Social | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.social.test.client.RequestMatchers
public abstract class RequestMatchers
Factory methods for RequestMatcher
classes. Typically used to provide input for
MockRestServiceServer.expect(RequestMatcher)
.
Method Summary | |
---|---|
static RequestMatcher |
anything()
Expects any request. |
static RequestMatcher |
body(java.lang.String body)
Expects the given request body content |
static RequestMatcher |
header(java.lang.String header,
java.lang.String value)
Expects the given request header |
static RequestMatcher |
headerContains(java.lang.String header,
java.lang.String substring)
Expects that the specified request header contains a subtring |
static RequestMatcher |
method(org.springframework.http.HttpMethod method)
Expects the given HttpMethod . |
static RequestMatcher |
requestTo(java.lang.String uri)
Expects a request to the given URI. |
static RequestMatcher |
requestTo(java.net.URI uri)
Expects a request to the given URI. |
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 method(org.springframework.http.HttpMethod method)
HttpMethod
.
method
- the HTTP method
public static RequestMatcher requestTo(java.lang.String uri)
uri
- the request URI
public static RequestMatcher requestTo(java.net.URI uri)
uri
- the request URI
public static RequestMatcher header(java.lang.String header, java.lang.String value)
header
- the header namevalue
- the header value
public static RequestMatcher headerContains(java.lang.String header, java.lang.String substring)
header
- the header namesubstring
- the substring that must appear in the header
public static RequestMatcher body(java.lang.String body)
body
- the request body
|
Spring Social | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |