Class HttpResponseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
net.anwiba.commons.http.HttpResponseException
All Implemented Interfaces:
Serializable

public class HttpResponseException extends IOException
See Also:
  • Constructor Details

    • HttpResponseException

      public HttpResponseException(String message, String url, int statusCode, String statusText, byte[] content, String contentType, String contentEncoding)
    • HttpResponseException

      public HttpResponseException(String message, String url, int statusCode, String statusText, byte[] content, String contentType, String contentEncoding, Throwable throwable)
  • Method Details

    • getUrl

      public String getUrl()
    • getContent

      public byte[] getContent()
    • getContentLength

      public int getContentLength()
    • getContentAsString

      public String getContentAsString()
    • getContentType

      public String getContentType()
    • getContentEncoding

      public String getContentEncoding()
    • getStatusCode

      public int getStatusCode()
    • getStatusText

      public String getStatusText()
    • create

      public static HttpResponseException create(String message, IResponse response, byte[] body)
    • create

      public static IOException create(String message, IResponse response) throws IOException
      Throws:
      IOException