public class HttpOperationFailedException
extends org.apache.camel.CamelException
implements org.apache.camel.spi.HttpResponseAware
| Constructor and Description |
|---|
HttpOperationFailedException(String uri,
int statusCode,
String statusText,
String location,
Map<String,String> responseHeaders,
String responseBody) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHttpResponseCode() |
String |
getHttpResponseStatus() |
String |
getRedirectLocation() |
String |
getResponseBody() |
Map<String,String> |
getResponseHeaders() |
int |
getStatusCode() |
String |
getStatusText() |
String |
getUri() |
boolean |
hasRedirectLocation() |
boolean |
isRedirectError() |
void |
setHttpResponseCode(int code) |
void |
setHttpResponseStatus(String status) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic String getUri()
public boolean isRedirectError()
public boolean hasRedirectLocation()
public String getRedirectLocation()
public int getStatusCode()
public String getStatusText()
public String getResponseBody()
public int getHttpResponseCode()
getHttpResponseCode in interface org.apache.camel.spi.HttpResponseAwarepublic void setHttpResponseCode(int code)
setHttpResponseCode in interface org.apache.camel.spi.HttpResponseAwarepublic String getHttpResponseStatus()
getHttpResponseStatus in interface org.apache.camel.spi.HttpResponseAwarepublic void setHttpResponseStatus(String status)
setHttpResponseStatus in interface org.apache.camel.spi.HttpResponseAwareApache Camel