java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
net.anwiba.commons.http.HttpResponseException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpResponseException(String message, String url, int statusCode, String statusText, byte[] content, String contentType, String contentEncoding) HttpResponseException(String message, String url, int statusCode, String statusText, byte[] content, String contentType, String contentEncoding, Throwable throwable) -
Method Summary
Modifier and TypeMethodDescriptionstatic IOExceptionstatic HttpResponseExceptionbyte[]intintgetUrl()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpResponseException
-
HttpResponseException
-
-
Method Details
-
getUrl
-
getContent
public byte[] getContent() -
getContentLength
public int getContentLength() -
getContentAsString
-
getContentType
-
getContentEncoding
-
getStatusCode
public int getStatusCode() -
getStatusText
-
create
-
create
- Throws:
IOException
-