@ConsumerType
public interface ArtifactProvider
Modifier and Type | Method and Description |
---|---|
URL |
getArtifact(String url,
String relativeCachePath)
Get a local file for the artifact URL.
|
String |
getProtocol()
The protocol name of the provider, e.g.
|
void |
init(ArtifactProviderContext context)
Initialize the provider.
|
void |
shutdown()
Shutdown the provider.
|
String getProtocol()
void init(ArtifactProviderContext context) throws IOException
context
- The contextIOException
- If the provider can't be initialized.void shutdown()
URL getArtifact(String url, String relativeCachePath)
url
- Artifact urlrelativeCachePath
- A relative path that can be used as a cache path
by the provider. The path does not start with a slash.null
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.