|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(Resource responseBody,
HttpHeaders headers)
Response with a given response body and headers. |
static ResponseCreator |
withResponse(Resource responseBodyResource,
HttpHeaders headers,
HttpStatus statusCode,
java.lang.String statusText)
Respond with a given response body (from a Resource ) and headers. |
static ResponseCreator |
withResponse(java.lang.String responseBody,
HttpHeaders headers)
Response with a given response body and headers. |
static ResponseCreator |
withResponse(java.lang.String responseBody,
HttpHeaders headers,
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, HttpHeaders headers, 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, HttpHeaders headers)
responseBody
- the body of the responseheaders
- the response headers
ResponseCreator
public static ResponseCreator withResponse(Resource responseBodyResource, HttpHeaders headers, 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(Resource responseBody, HttpHeaders headers)
responseBody
- the body of the responseheaders
- the response headers
ResponseCreator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |