DefaultResponseCreator | DefaultResponseCreator.body(byte[] content) | Set the body as a byte array. |
---|
DefaultResponseCreator | DefaultResponseCreator.body(String content) | Set the body as a UTF-8 String. |
---|
DefaultResponseCreator | DefaultResponseCreator.body(Resource resource) | |
---|
DefaultResponseCreator | DefaultResponseCreator.contentType(MediaType mediaType) | Set the Content-Type header. |
---|
DefaultResponseCreator | DefaultResponseCreator.headers(HttpHeaders headers) | Copy all given headers. |
---|
DefaultResponseCreator | DefaultResponseCreator.location(URI location) | Set the Location header. |
---|
static DefaultResponseCreator | MockRestResponseCreators.withBadRequest() | ResponseCreator for a 400 response (BAD_REQUEST).
|
---|
static DefaultResponseCreator | MockRestResponseCreators.withCreatedEntity(URI location) | ResponseCreator for a 201 response (CREATED) with a 'Location' header.
|
---|
static DefaultResponseCreator | MockRestResponseCreators.withNoContent() | ResponseCreator for a 204 response (NO_CONTENT).
|
---|
static DefaultResponseCreator | MockRestResponseCreators.withServerError() | ResponseCreator for a 500 response (SERVER_ERROR).
|
---|
static DefaultResponseCreator | MockRestResponseCreators.withStatus(HttpStatus status) | ResponseCreator with a specific HTTP status.
|
---|
static DefaultResponseCreator | MockRestResponseCreators.withSuccess() | ResponseCreator for a 200 response (OK).
|
---|
static DefaultResponseCreator | MockRestResponseCreators.withSuccess(byte[] body, MediaType contentType) | ResponseCreator for a 200 response (OK) with byte[] body.
|
---|
static DefaultResponseCreator | MockRestResponseCreators.withSuccess(String body, MediaType contentType) | ResponseCreator for a 200 response (OK) with String body.
|
---|
static DefaultResponseCreator | MockRestResponseCreators.withSuccess(Resource body, MediaType contentType) | ResponseCreator for a 200 response (OK) content with Resource -based body. |
---|
static DefaultResponseCreator | MockRestResponseCreators.withUnauthorizedRequest() | ResponseCreator for a 401 response (UNAUTHORIZED).
|
---|