Interface HttpTransporterFactory
- All Superinterfaces:
TransporterFactory
- All Known Implementing Classes:
ApacheTransporterFactory
,JdkTransporterFactory
,JettyTransporterFactory
A factory for
HttpTransporter
.- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionnewInstance
(RepositorySystemSession session, RemoteRepository repository) Tries to create HTTP transporter for the specified remote repository.Methods inherited from interface org.eclipse.aether.spi.connector.transport.TransporterFactory
getPriority
-
Method Details
-
newInstance
HttpTransporter newInstance(RepositorySystemSession session, RemoteRepository repository) throws NoTransporterException Tries to create HTTP transporter for the specified remote repository.- Specified by:
newInstance
in interfaceTransporterFactory
- Parameters:
session
- The repository system session from which to configure the transporter, must not benull
. In particular, a transporter should obey the timeouts configured for the session.repository
- The remote repository to create a transporter for, must not benull
.- Returns:
- The transporter for the given repository, never
null
. - Throws:
NoTransporterException
- If the factory cannot create a transporter for the specified remote repository.
-