Class AuthenticatedWebClient.WebResponse

  • Enclosing class:
    AuthenticatedWebClient

    public static class AuthenticatedWebClient.WebResponse
    extends java.lang.Object
    A web response code (HTTP Response code) and content from the web request.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCode()
      The HTTP response code.
      java.lang.String getContent()
      Content for the web response, if any.
      boolean isErrorCode()
      Returns true if the HTTP Response code represents an error.
      • Methods inherited from class java.lang.Object

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

      • getCode

        public int getCode()
        The HTTP response code.
        Returns:
        The HTTP response code. Ex. 200 or 403
      • isErrorCode

        public boolean isErrorCode()
        Returns true if the HTTP Response code represents an error.
        Returns:
        true or false
      • getContent

        public java.lang.String getContent()
        Content for the web response, if any.
        Returns:
        JSON content for the web response, if any.