@Named public final class DefaultChecksumPolicyProvider extends Object implements ChecksumPolicyProvider, Service
| Constructor and Description |
|---|
DefaultChecksumPolicyProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEffectiveChecksumPolicy(RepositorySystemSession session,
String policy1,
String policy2)
Returns the least strict policy.
|
void |
initService(ServiceLocator locator)
Provides the opportunity to initialize this service and to acquire other services for its operation from the
locator.
|
ChecksumPolicy |
newChecksumPolicy(RepositorySystemSession session,
RemoteRepository repository,
TransferResource resource,
String policy)
Retrieves the checksum policy with the specified identifier for use on the given remote resource.
|
DefaultChecksumPolicyProvider |
setLoggerFactory(LoggerFactory loggerFactory) |
public void initService(ServiceLocator locator)
ServiceinitService in interface Servicelocator - The service locator, must not be null.public DefaultChecksumPolicyProvider setLoggerFactory(LoggerFactory loggerFactory)
public ChecksumPolicy newChecksumPolicy(RepositorySystemSession session, RemoteRepository repository, TransferResource resource, String policy)
ChecksumPolicyProvidernewChecksumPolicy in interface ChecksumPolicyProvidersession - The repository system session during which the request is made, must not be null.repository - The repository hosting the resource being transferred, must not be null.resource - The transfer resource on which the policy will be applied, must not be null.policy - The identifier of the policy to apply, must not be null.null if checksums should be ignored.public String getEffectiveChecksumPolicy(RepositorySystemSession session, String policy1, String policy2)
ChecksumPolicyProvidergetEffectiveChecksumPolicy in interface ChecksumPolicyProvidersession - The repository system session during which the request is made, must not be null.policy1 - A policy to compare, must not be null.policy2 - A policy to compare, must not be null.Copyright © 2010-2014 The Eclipse Foundation. All Rights Reserved.