Interface TransporterProvider


  • public interface TransporterProvider
    Retrieves a transporter from the installed transporter factories.
    Restriction:
    This interface is not intended to be extended by clients.
    Restriction:
    This interface is not intended to be implemented by clients.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Transporter newTransporter​(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository)
      Tries to create a transporter for the specified remote repository.
    • Method Detail

      • newTransporter

        Transporter newTransporter​(org.eclipse.aether.RepositorySystemSession session,
                                   org.eclipse.aether.repository.RemoteRepository repository)
                            throws org.eclipse.aether.transfer.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 be null.
        repository - The remote repository to create a transporter for, must not be null.
        Returns:
        The transporter for the given repository, never null.
        Throws:
        org.eclipse.aether.transfer.NoTransporterException - If none of the installed transporter factories can provide a transporter for the specified remote repository.