Class 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 Detail

      • NettyHttpOperationFailedException

        public NettyHttpOperationFailedException​(String uri,
                                                 int statusCode,
                                                 String statusText,
                                                 String location,
                                                 io.netty.handler.codec.http.HttpContent content)
    • 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()
      • 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