org.apache.camel.component.netty.http
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
NettyHttpOperationFailedException
public NettyHttpOperationFailedException(String uri,
int statusCode,
String statusText,
String location,
org.jboss.netty.handler.codec.http.HttpResponse response)
getUri
public String getUri()
isRedirectError
public boolean isRedirectError()
hasRedirectLocation
public boolean hasRedirectLocation()
getRedirectLocation
public String getRedirectLocation()
getStatusCode
public int getStatusCode()
getStatusText
public String getStatusText()
getResponse
public org.jboss.netty.handler.codec.http.HttpResponse getResponse()
- Gets the
HttpResponse
.
Notice this may be null if this exception has been serialized,
as the HttpResponse
instance is marked as transient in this class.
Apache Camel