Class Response<T>


  • public class Response<T>
    extends Object
    • Constructor Detail

      • Response

        public Response​(int code,
                        String failureMessage,
                        String contentType,
                        byte[] body)
    • Method Detail

      • getContentType

        public String getContentType()
      • setValueType

        public void setValueType​(Class valueType)
      • body

        public T body()
        The response object in case of a successful request.
      • message

        public String message()
        Returns the status message. Describes the failure cause.
      • isSuccessful

        public boolean isSuccessful()
      • code

        public int code()