Interface HttpTransporter
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable,Transporter
public interface HttpTransporter extends Transporter
A transporter using HTTP protocol.- Since:
- 2.0.0
-
-
Field Summary
-
Fields inherited from interface org.eclipse.aether.spi.connector.transport.Transporter
ERROR_NOT_FOUND, ERROR_OTHER
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default intclassify(java.lang.Throwable error)Classifies the type of exception that has been thrown from a previous request to the transporter.-
Methods inherited from interface org.eclipse.aether.spi.connector.transport.Transporter
close, get, peek, put
-
-
-
-
Method Detail
-
classify
default int classify(java.lang.Throwable error)
Description copied from interface:TransporterClassifies 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:
classifyin interfaceTransporter- Parameters:
error- The exception to classify, must not benull.- Returns:
- The classification of the error, either
Transporter.ERROR_NOT_FOUNDorTransporter.ERROR_OTHER.
-
-