@Named(value="http") public final class HttpTransporterFactory extends Object implements TransporterFactory, Service
http: or https: protocol. The provided transporters
support uploads to WebDAV servers and resumable downloads.| Constructor and Description |
|---|
HttpTransporterFactory()
Creates an (uninitialized) instance of this transporter factory.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getPriority()
The priority of this factory.
|
void |
initService(ServiceLocator locator)
Provides the opportunity to initialize this service and to acquire other services for its operation from the
locator.
|
Transporter |
newInstance(RepositorySystemSession session,
RemoteRepository repository)
Tries to create a transporter for the specified remote repository.
|
HttpTransporterFactory |
setLoggerFactory(LoggerFactory loggerFactory)
Sets the logger factory to use for this component.
|
HttpTransporterFactory |
setPriority(float priority)
Sets the priority of this component.
|
public HttpTransporterFactory()
public void initService(ServiceLocator locator)
ServiceinitService in interface Servicelocator - The service locator, must not be null.public HttpTransporterFactory setLoggerFactory(LoggerFactory loggerFactory)
loggerFactory - The logger factory to use, may be null to disable logging.null.public float getPriority()
TransporterFactorygetPriority in interface TransporterFactorypublic HttpTransporterFactory setPriority(float priority)
priority - The priority.null.public Transporter newInstance(RepositorySystemSession session, RemoteRepository repository) throws NoTransporterException
TransporterFactoryRemoteRepository.getProtocol() to determine whether it can handle a repository.newInstance in interface TransporterFactorysession - 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-2014 The Eclipse Foundation. All Rights Reserved.