org.apache.camel.component.http
Class HttpOperationFailedException

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.http.HttpOperationFailedException
All Implemented Interfaces:
Serializable

public class HttpOperationFailedException
extends CamelException

See Also:
Serialized Form

Constructor Summary
HttpOperationFailedException(int statusCode, org.apache.commons.httpclient.StatusLine statusLine, org.apache.commons.httpclient.Header[] responseHeaders, InputStream responseBody)
           
HttpOperationFailedException(int statusCode, org.apache.commons.httpclient.StatusLine statusLine, String location, org.apache.commons.httpclient.Header[] responseHeaders, InputStream responseBody)
           
 
Method Summary
 String getRedirectLocation()
           
 InputStream getResponseBody()
           
 org.apache.commons.httpclient.Header[] getResponseHeaders()
           
 int getStatusCode()
           
 org.apache.commons.httpclient.StatusLine getStatusLine()
           
 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

HttpOperationFailedException

public HttpOperationFailedException(int statusCode,
                                    org.apache.commons.httpclient.StatusLine statusLine,
                                    String location,
                                    org.apache.commons.httpclient.Header[] responseHeaders,
                                    InputStream responseBody)

HttpOperationFailedException

public HttpOperationFailedException(int statusCode,
                                    org.apache.commons.httpclient.StatusLine statusLine,
                                    org.apache.commons.httpclient.Header[] responseHeaders,
                                    InputStream responseBody)
Method Detail

isRedirectError

public boolean isRedirectError()

hasRedirectLocation

public boolean hasRedirectLocation()

getRedirectLocation

public String getRedirectLocation()

getStatusLine

public org.apache.commons.httpclient.StatusLine getStatusLine()

getStatusCode

public int getStatusCode()

getResponseHeaders

public org.apache.commons.httpclient.Header[] getResponseHeaders()

getResponseBody

public InputStream getResponseBody()


Copyright © 2009 Apache Software Foundation. All Rights Reserved.