Class FileTransporter
java.lang.Object
org.eclipse.aether.spi.connector.transport.AbstractTransporter
org.eclipse.aether.transport.file.FileTransporter
- All Implemented Interfaces:
Closeable,AutoCloseable,Transporter
A transporter using
File.-
Field Summary
FieldsFields inherited from interface org.eclipse.aether.spi.connector.transport.Transporter
ERROR_NOT_FOUND, ERROR_OTHER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintClassifies the type of exception that has been thrown from a previous request to the transporter.(package private) Fileprivate FilegetFile(TransportTask task, boolean required) protected voidImplementsAbstractTransporter.close(), gets only called if the transporter has not already been closed.protected voidImplementsAbstractTransporter.get(GetTask), gets only called if the transporter has not been closed.protected voidImplementsAbstractTransporter.peek(PeekTask), gets only called if the transporter has not been closed.protected voidImplementsAbstractTransporter.put(PutTask), gets only called if the transporter has not been closed.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
basedir
-
-
Constructor Details
-
FileTransporter
FileTransporter(RemoteRepository repository) throws NoTransporterException - Throws:
NoTransporterException
-
-
Method Details
-
getBasedir
File getBasedir() -
classify
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.- Parameters:
error- The exception to classify, must not benull.- Returns:
- The classification of the error, either
Transporter.ERROR_NOT_FOUNDorTransporter.ERROR_OTHER.
-
implPeek
Description copied from class:AbstractTransporterImplementsAbstractTransporter.peek(PeekTask), gets only called if the transporter has not been closed.- Specified by:
implPeekin classAbstractTransporter- Parameters:
task- The existence check to perform, must not benull.- Throws:
Exception- If the existence of the specified resource could not be confirmed.
-
implGet
Description copied from class:AbstractTransporterImplementsAbstractTransporter.get(GetTask), gets only called if the transporter has not been closed.- Specified by:
implGetin classAbstractTransporter- Parameters:
task- The download to perform, must not benull.- Throws:
Exception- If the transfer failed.
-
implPut
Description copied from class:AbstractTransporterImplementsAbstractTransporter.put(PutTask), gets only called if the transporter has not been closed.- Specified by:
implPutin classAbstractTransporter- Parameters:
task- The upload to perform, must not benull.- Throws:
Exception- If the transfer failed.
-
getFile
- Throws:
Exception
-
implClose
protected void implClose()Description copied from class:AbstractTransporterImplementsAbstractTransporter.close(), gets only called if the transporter has not already been closed.- Specified by:
implClosein classAbstractTransporter
-