Interface TransporterProvider
-
- All Known Implementing Classes:
DefaultTransporterProvider
public interface TransporterProviderRetrieves a transporter from the installed transporter factories.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransporternewTransporter(RepositorySystemSession session, RemoteRepository repository)Tries to create a transporter for the specified remote repository.
-
-
-
Method Detail
-
newTransporter
Transporter newTransporter(RepositorySystemSession session, RemoteRepository repository) throws NoTransporterException
Tries to create a transporter for the specified remote repository.- Parameters:
session- The repository system session from which to configure the transporter, must not benull.repository- The remote repository to create a transporter for, must not benull.- Returns:
- The transporter for the given repository, never
null. - Throws:
NoTransporterException- If none of the installed transporter factories can provide a transporter for the specified remote repository.
-
-