Class RestResponse

  • All Implemented Interfaces:
    java.io.Serializable

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

      Constructors 
      Constructor Description
      RestResponse​(int status, java.lang.String mimeType, byte[] body)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getBody()  
      java.lang.String getMimeType()  
      int getStatus()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RestResponse

        public RestResponse​(int status,
                            java.lang.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 Detail

      • getStatus

        public int getStatus()
        Returns:
        The HTTP status code issues for the response (e.g. 200 == OK).
      • getMimeType

        public java.lang.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.