org.apache.camel.component.netty.http
Class NettyHttpOperationFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.camel.CamelException
              extended by 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
NettyHttpOperationFailedException(String uri, int statusCode, String statusText, String location, org.jboss.netty.handler.codec.http.HttpResponse response)
           
 
Method Summary
 String getRedirectLocation()
           
 org.jboss.netty.handler.codec.http.HttpResponse getResponse()
          Gets the HttpResponse.
 int getStatusCode()
           
 String getStatusText()
           
 String getUri()
           
 boolean hasRedirectLocation()
           
 boolean isRedirectError()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NettyHttpOperationFailedException

public NettyHttpOperationFailedException(String uri,
                                         int statusCode,
                                         String statusText,
                                         String location,
                                         org.jboss.netty.handler.codec.http.HttpResponse response)
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()

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