Interface HttpTransporterFactory

    • Method Detail

      • newInstance

        HttpTransporter newInstance​(org.eclipse.aether.RepositorySystemSession session,
                                    org.eclipse.aether.repository.RemoteRepository repository)
                             throws org.eclipse.aether.transfer.NoTransporterException
        Tries to create HTTP transporter for the specified remote repository.
        Specified by:
        newInstance in interface TransporterFactory
        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:
        org.eclipse.aether.transfer.NoTransporterException - If the factory cannot create a transporter for the specified remote repository.