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:
  • Constructor Details

    • NettyHttpOperationFailedException

      public NettyHttpOperationFailedException(String uri, int statusCode, String statusText, String location, io.netty.handler.codec.http.HttpContent content)
  • Method Details

    • getUri

      public String getUri()
    • isRedirectError

      public boolean isRedirectError()
    • hasRedirectLocation

      public boolean hasRedirectLocation()
    • getRedirectLocation

      public String getRedirectLocation()
    • getStatusCode

      public int getStatusCode()
    • getStatusText

      public String getStatusText()
    • getHttpContent

      @Deprecated public io.netty.handler.codec.http.HttpContent getHttpContent()
      Deprecated.
      use getContentAsString();
      Gets the HttpContent.

      Notice this may be null if this exception has been serialized, as the HttpContent instance is marked as transient in this class.

    • getContentAsString

      public String getContentAsString()
      Gets the HTTP content as a String

      Notice this may be null if it was not possible to read the content