Class RestResponse

java.lang.Object
io.github.jopenlibs.vault.rest.RestResponse
All Implemented Interfaces:
Serializable

public class RestResponse extends Object implements Serializable
This class contains the metadata and data that was downloaded by Rest from an HTTP response.
See Also:
  • Constructor Details

    • RestResponse

      public RestResponse(int status, String mimeType, byte[] body)
      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

      public String 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.