Class HttpOperationFailedException

  • All Implemented Interfaces:
    Serializable, org.apache.camel.spi.HttpResponseAware

    public class HttpOperationFailedException
    extends org.apache.camel.CamelException
    implements org.apache.camel.spi.HttpResponseAware
    See Also:
    Serialized Form
    • Constructor Detail

      • HttpOperationFailedException

        public HttpOperationFailedException​(String uri,
                                            int statusCode,
                                            String statusText,
                                            String location,
                                            Map<String,​String> responseHeaders,
                                            String responseBody)
    • 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()
      • getResponseBody

        public String getResponseBody()
      • getHttpResponseCode

        public int getHttpResponseCode()
        Specified by:
        getHttpResponseCode in interface org.apache.camel.spi.HttpResponseAware
      • setHttpResponseCode

        public void setHttpResponseCode​(int code)
        Specified by:
        setHttpResponseCode in interface org.apache.camel.spi.HttpResponseAware
      • getHttpResponseStatus

        public String getHttpResponseStatus()
        Specified by:
        getHttpResponseStatus in interface org.apache.camel.spi.HttpResponseAware
      • setHttpResponseStatus

        public void setHttpResponseStatus​(String status)
        Specified by:
        setHttpResponseStatus in interface org.apache.camel.spi.HttpResponseAware