@Named(value="http") public final class HttpTransporterFactory extends Object implements TransporterFactory
http:
or https:
protocol. The provided transporters
support uploads to WebDAV servers and resumable downloads.Constructor and Description |
---|
HttpTransporterFactory()
Deprecated.
|
HttpTransporterFactory(Map<String,ChecksumExtractor> extractors)
Creates an (uninitialized) instance of this transporter factory.
|
Modifier and Type | Method and Description |
---|---|
float |
getPriority()
The priority of this factory.
|
Transporter |
newInstance(RepositorySystemSession session,
RemoteRepository repository)
Tries to create a transporter for the specified remote repository.
|
HttpTransporterFactory |
setPriority(float priority)
Sets the priority of this component.
|
@Deprecated public HttpTransporterFactory()
@Inject public HttpTransporterFactory(Map<String,ChecksumExtractor> extractors)
public float getPriority()
TransporterFactory
getPriority
in interface TransporterFactory
public HttpTransporterFactory setPriority(float priority)
priority
- The priority.null
.public Transporter newInstance(RepositorySystemSession session, RemoteRepository repository) throws NoTransporterException
TransporterFactory
RemoteRepository.getProtocol()
to determine whether it can handle a repository.newInstance
in interface TransporterFactory
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
.null
.NoTransporterException
- If the factory cannot create a transporter for the specified remote repository.Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.