Class RestResponse


  • public class RestResponse
    extends java.lang.Object
    Rest Response container. Includes header data and body (as byte array).
    • Constructor Detail

      • RestResponse

        public RestResponse()
        Default Constructor, no data set.
      • RestResponse

        public RestResponse​(java.io.InputStream targetStream)
        Constructor
        Parameters:
        targetStream - the input stream that was transferred with this response.
      • RestResponse

        public RestResponse​(byte[] targetArray)
        Constructor
        Parameters:
        targetArray - the byte array that was transferred with this response.
    • Method Detail

      • setTargetByteArray

        public void setTargetByteArray​(byte[] targetArray)
      • setEntityInputStream

        public void setEntityInputStream​(java.io.InputStream entityInputStream)
      • getEntityInputStream

        public java.io.InputStream getEntityInputStream()
      • getEntity

        public <T> T getEntity​(java.lang.Class<T> clazz)
      • getContentType

        public java.lang.String getContentType()
      • setContentType

        public void setContentType​(java.lang.String contentType)
      • getContentLength

        public long getContentLength()
      • setContentLength

        public void setContentLength​(long length)
      • setDate

        public void setDate​(long date)
      • getDate

        public long getDate()