|
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.ResponseCreators
public abstract class ResponseCreators
Factory methods for ResponseCreator
classes. Typically used to provide input for ResponseActions.andRespond(ResponseCreator)
.
Method Summary | |
---|---|
static ResponseCreator |
withResponse(org.springframework.core.io.Resource responseBody,
org.springframework.http.HttpHeaders headers)
Response with a given response body and headers. |
static ResponseCreator |
withResponse(org.springframework.core.io.Resource responseBodyResource,
org.springframework.http.HttpHeaders headers,
org.springframework.http.HttpStatus statusCode,
java.lang.String statusText)
Respond with a given response body (from a Resource ) and headers. |
static ResponseCreator |
withResponse(java.lang.String responseBody,
org.springframework.http.HttpHeaders headers)
Response with a given response body and headers. |
static ResponseCreator |
withResponse(java.lang.String responseBody,
org.springframework.http.HttpHeaders headers,
org.springframework.http.HttpStatus statusCode,
java.lang.String statusText)
Respond with a given response body, headers, status code, and status text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ResponseCreator withResponse(java.lang.String responseBody, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus statusCode, java.lang.String statusText)
responseBody
- the body of the responseheaders
- the response headersstatusCode
- the response status codestatusText
- the response status text
ResponseCreator
public static ResponseCreator withResponse(java.lang.String responseBody, org.springframework.http.HttpHeaders headers)
responseBody
- the body of the responseheaders
- the response headers
ResponseCreator
public static ResponseCreator withResponse(org.springframework.core.io.Resource responseBodyResource, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus statusCode, java.lang.String statusText)
Resource
) and headers. The response status code is HTTP 200 (OK).
responseBodyResource
- a Resource
containing the body of the responseheaders
- the response headersstatusCode
- the response status codestatusText
- the response status text
ResponseCreator
public static ResponseCreator withResponse(org.springframework.core.io.Resource responseBody, org.springframework.http.HttpHeaders headers)
responseBody
- the body of the responseheaders
- the response headers
ResponseCreator
|
Spring Social | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |