Class HttpResult


  • public class HttpResult
    extends Object
    Set of common HTTP(S) utility methods.
    • Constructor Detail

      • HttpResult

        public HttpResult()
    • Method Detail

      • getResponseBody

        public String getResponseBody()
        Returns:
        Response body of HTTP response.
      • setResponseBody

        public void setResponseBody​(String responseBody)
        Parameters:
        responseBody - Response body of HTTP response.
      • getResponseCode

        public int getResponseCode()
        Returns:
        HTTP response code.
      • setResponseCode

        public void setResponseCode​(int responseCode)
        Parameters:
        responseCode - HTTP response code.
      • getResponseMessage

        public String getResponseMessage()
        Returns:
        HTTP response message.
      • setResponseMessage

        public void setResponseMessage​(String responseMessage)
        Parameters:
        responseMessage - HTTP response message.
      • isSuccessful

        public boolean isSuccessful()
        Returns:
        True if HTTP call is successful - its response code is 2xx.