Class NettyHttpOperationFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.camel.CamelException
org.apache.camel.component.netty.http.NettyHttpOperationFailedException
- All Implemented Interfaces:
Serializable
public class NettyHttpOperationFailedException
extends org.apache.camel.CamelException
Exception when a Netty HTTP operation failed.
- See Also:
-
Constructor Summary
ConstructorDescriptionNettyHttpOperationFailedException
(String uri, int statusCode, String statusText, String location, io.netty.handler.codec.http.HttpContent content) -
Method Summary
Modifier and TypeMethodDescriptionGets the HTTP content as a Stringio.netty.handler.codec.http.HttpContent
Deprecated.use getContentAsString();int
getUri()
boolean
boolean
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NettyHttpOperationFailedException
-
-
Method Details
-
getUri
-
isRedirectError
public boolean isRedirectError() -
hasRedirectLocation
public boolean hasRedirectLocation() -
getRedirectLocation
-
getStatusCode
public int getStatusCode() -
getStatusText
-
getHttpContent
Deprecated.use getContentAsString();Gets theHttpContent
. Notice this may be null if this exception has been serialized, as theHttpContent
instance is marked as transient in this class. -
getContentAsString
Gets the HTTP content as a String Notice this may be null if it was not possible to read the content
-