java.lang.Object
io.github.jopenlibs.vault.rest.RestResponse
- All Implemented Interfaces:
Serializable
This class contains the metadata and data that was downloaded by
Rest from an HTTP
response.- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RestResponse
- Parameters:
status- The HTTP status code issues for the response (e.g.200 == OK).mimeType- The MIME type for the body contents (e.g.application/json).body- The binary payload of the response body.
-
-
Method Details
-
getStatus
public int getStatus()- Returns:
- The HTTP status code issues for the response (e.g.
200 == OK).
-
getMimeType
- Returns:
- The MIME type for the body contents (e.g.
application/json).
-
getBody
public byte[] getBody()- Returns:
- The binary payload of the response body.
-