Interface TransporterFactory

    • Method Detail

      • newInstance

        Transporter newInstance​(RepositorySystemSession session,
                                RemoteRepository repository)
                         throws NoTransporterException
        Tries to create a transporter for the specified remote repository. Typically, a factory will inspect RemoteRepository.getProtocol() to determine whether it can handle a repository.
        Parameters:
        session - The repository system session from which to configure the transporter, must not be null. In particular, a transporter should obey the timeouts configured for the session.
        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 the factory cannot create a transporter for the specified remote repository.
      • getPriority

        float getPriority()
        The priority of this factory. When multiple factories can handle a given repository, factories with higher priority are preferred over those with lower priority.
        Returns:
        The priority of this factory.