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 TypeMethodDescriptionint
Classifies the type of exception that has been thrown from a previous request to the transporter.(package private) File
private File
getFile
(TransportTask task, boolean required) protected void
ImplementsAbstractTransporter.close()
, gets only called if the transporter has not already been closed.protected void
ImplementsAbstractTransporter.get(GetTask)
, gets only called if the transporter has not been closed.protected void
ImplementsAbstractTransporter.peek(PeekTask)
, gets only called if the transporter has not been closed.protected void
ImplementsAbstractTransporter.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: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.- Parameters:
error
- The exception to classify, must not benull
.- Returns:
- The classification of the error, either
Transporter.ERROR_NOT_FOUND
orTransporter.ERROR_OTHER
.
-
implPeek
Description copied from class:AbstractTransporter
ImplementsAbstractTransporter.peek(PeekTask)
, gets only called if the transporter has not been closed.- Specified by:
implPeek
in 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:AbstractTransporter
ImplementsAbstractTransporter.get(GetTask)
, gets only called if the transporter has not been closed.- Specified by:
implGet
in classAbstractTransporter
- Parameters:
task
- The download to perform, must not benull
.- Throws:
Exception
- If the transfer failed.
-
implPut
Description copied from class:AbstractTransporter
ImplementsAbstractTransporter.put(PutTask)
, gets only called if the transporter has not been closed.- Specified by:
implPut
in 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:AbstractTransporter
ImplementsAbstractTransporter.close()
, gets only called if the transporter has not already been closed.- Specified by:
implClose
in classAbstractTransporter
-