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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NettyHttpOperationFailedException(String uri, int statusCode, String statusText, String location, io.netty.handler.codec.http.HttpContent content)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getContentAsString()
Gets the HTTP content as a Stringio.netty.handler.codec.http.HttpContent
getHttpContent()
Deprecated.use getContentAsString();String
getRedirectLocation()
int
getStatusCode()
String
getStatusText()
String
getUri()
boolean
hasRedirectLocation()
boolean
isRedirectError()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getUri
public String getUri()
-
isRedirectError
public boolean isRedirectError()
-
hasRedirectLocation
public boolean hasRedirectLocation()
-
getRedirectLocation
public String getRedirectLocation()
-
getStatusCode
public int getStatusCode()
-
getStatusText
public String getStatusText()
-
getHttpContent
@Deprecated public io.netty.handler.codec.http.HttpContent 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
public String getContentAsString()
Gets the HTTP content as a String Notice this may be null if it was not possible to read the content
-
-