public class StandardOperationResponse extends Object implements OperationResponse
OperationResponse.| Constructor and Description |
|---|
StandardOperationResponse(HttpStatus status,
HttpHeaders headers,
byte[] content)
Creates a new response with the given
status, headers, and
content. |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContent()
Returns the contents of the response.
|
HttpHeaders |
getHeaders()
Returns the headers in the response.
|
HttpStatus |
getStatus()
Returns the status of the response.
|
public StandardOperationResponse(HttpStatus status, HttpHeaders headers, byte[] content)
status, headers, and
content.status - the status of the responseheaders - the headers of the responsecontent - the content of the responsepublic HttpStatus getStatus()
OperationResponsegetStatus in interface OperationResponsepublic HttpHeaders getHeaders()
OperationResponsegetHeaders in interface OperationResponsepublic byte[] getContent()
OperationResponsegetContent in interface OperationResponsenull