Class DefaultTransporterProvider

    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
    • Constructor Detail

      • DefaultTransporterProvider

        public DefaultTransporterProvider()
      • DefaultTransporterProvider

        @Inject
        DefaultTransporterProvider​(java.util.Set<TransporterFactory> transporterFactories)
    • Method Detail

      • initService

        public void initService​(ServiceLocator locator)
        Description copied from interface: Service
        Provides the opportunity to initialize this service and to acquire other services for its operation from the locator. A service must not save the reference to the provided service locator.
        Specified by:
        initService in interface Service
        Parameters:
        locator - The service locator, must not be null.
      • newTransporter

        public Transporter newTransporter​(RepositorySystemSession session,
                                          RemoteRepository repository)
                                   throws NoTransporterException
        Description copied from interface: TransporterProvider
        Tries to create a transporter for the specified remote repository.
        Specified by:
        newTransporter in interface TransporterProvider
        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:
        NoTransporterException - If none of the installed transporter factories can provide a transporter for the specified remote repository.