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()
OperationResponse
getStatus
in interface OperationResponse
public HttpHeaders getHeaders()
OperationResponse
getHeaders
in interface OperationResponse
public byte[] getContent()
OperationResponse
getContent
in interface OperationResponse
null