public class NettyHttpOperationFailedException
extends org.apache.camel.CamelException
Constructor and Description |
---|
NettyHttpOperationFailedException(String uri,
int statusCode,
String statusText,
String location,
io.netty.handler.codec.http.HttpContent content) |
Modifier and Type | Method and Description |
---|---|
String |
getContentAsString()
Gets the HTTP content as a String
Notice this may be null if it was not possible to read the content
|
io.netty.handler.codec.http.HttpContent |
getHttpContent()
Deprecated.
use getContentAsString();
|
String |
getRedirectLocation() |
int |
getStatusCode() |
String |
getStatusText() |
String |
getUri() |
boolean |
hasRedirectLocation() |
boolean |
isRedirectError() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public String getUri()
public boolean isRedirectError()
public boolean hasRedirectLocation()
public String getRedirectLocation()
public int getStatusCode()
public String getStatusText()
@Deprecated public io.netty.handler.codec.http.HttpContent getHttpContent()
HttpContent
.
Notice this may be null if this exception has been serialized,
as the HttpContent
instance is marked as transient in this class.public String getContentAsString()
Apache Camel