Interface HttpTransporter

All Superinterfaces:
AutoCloseable, Closeable, Transporter

public interface HttpTransporter extends Transporter
A transporter using HTTP protocol.
Since:
2.0.0
  • Method Details

    • classify

      default int classify(Throwable error)
      Description copied from interface: Transporter
      Classifies the type of exception that has been thrown from a previous request to the transporter. The exception types employed by a transporter are generally unknown to its caller. Where a caller needs to distinguish between certain error cases, it employs this method to detect which error case corresponds to the exception.
      Specified by:
      classify in interface Transporter
      Parameters:
      error - The exception to classify, must not be null.
      Returns:
      The classification of the error, either Transporter.ERROR_NOT_FOUND or Transporter.ERROR_OTHER.