org.apache.camel.component.ahc
Class AhcOperationFailedException

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.ahc.AhcOperationFailedException
All Implemented Interfaces:
Serializable

public class AhcOperationFailedException
extends org.apache.camel.CamelException

See Also:
Serialized Form

Constructor Summary
AhcOperationFailedException(String url, int statusCode, String statusText, String location, Map<String,String> responseHeaders, String responseBody)
           
 
Method Summary
 String getRedirectLocation()
           
 String getResponseBody()
           
 Map<String,String> getResponseHeaders()
           
 int getStatusCode()
           
 String getStatusText()
           
 String getUrl()
           
 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

AhcOperationFailedException

public AhcOperationFailedException(String url,
                                   int statusCode,
                                   String statusText,
                                   String location,
                                   Map<String,String> responseHeaders,
                                   String responseBody)
Method Detail

getUrl

public String getUrl()

isRedirectError

public boolean isRedirectError()

hasRedirectLocation

public boolean hasRedirectLocation()

getRedirectLocation

public String getRedirectLocation()

getStatusCode

public int getStatusCode()

getStatusText

public String getStatusText()

getResponseHeaders

public Map<String,String> getResponseHeaders()

getResponseBody

public String getResponseBody()


Apache Camel