Package org.apache.maven.api.services
Interface TransportProvider
- All Superinterfaces:
Service
- All Known Implementing Classes:
DefaultTransportProvider
Transporter provider is a service that provides somewhat trivial transport capabilities backed by Maven internals.
This API does not try to cover all the requirements out there, just the basic ones, and is intentionally simple.
If plugin or extension needs anything more complex feature wise (i.e. HTTP range support or alike) it should
probably roll its own.
This implementation is backed by Maven Resolver API, supported protocols and transport selection depends on it. If resolver preference regarding transport is altered, it will affect this service as well.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptiontransport
(Session session, RemoteRepository repository) Provides newTransport
instance for givenRemoteRepository
, if possible.
-
Method Details
-
transport
Provides newTransport
instance for givenRemoteRepository
, if possible.- Throws:
TransportProviderException
- if passed in remote repository has invalid remote URL or unsupported protocol.
-