public class HttpProtocolException extends ProtocolException
Constructor and Description |
---|
HttpProtocolException(LocaleMessage message, int status, Map<String,String> headers) |
HttpProtocolException(LocaleMessage message, int status, Map<String,String> headers, String body) |
HttpProtocolException(LocaleMessage message, int status, Map<String,String> headers, String body, String uri) |
Modifier and Type | Method and Description |
---|---|
String |
getBody() |
Map<String,String> |
getHeaders() |
int |
getStatus() |
String |
getUri() |
isIOException
getLocaleMessage, getMessage
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HttpProtocolException(LocaleMessage message, int status, Map<String,String> headers)
message
- the detail message.status
- the http status codeheaders
- the http headerspublic HttpProtocolException(LocaleMessage message, int status, Map<String,String> headers, String body)
message
- the detail message.status
- the http status codeheaders
- the http headersbody
- the http response body