public class ClassLoaderArtifactRetrievalService extends AbstractArtifactRetrievalService
ArtifactRetrievalService
that loads artifacts as ClassLoader
resources.
The retrieval token should be a path to a JSON-formatted ProxyManifest accessible via ClassLoader.getResource(String)
whose resource locations also point to paths loadable via ClassLoader.getResource(String)
.
Constructor and Description |
---|
ClassLoaderArtifactRetrievalService() |
ClassLoaderArtifactRetrievalService(java.lang.ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
openManifest(java.lang.String retrievalToken) |
java.io.InputStream |
openUri(java.lang.String retrievalToken,
java.lang.String uri) |
close, getArtifact, getManifest, getManifestProxy
bindService
public ClassLoaderArtifactRetrievalService()
public ClassLoaderArtifactRetrievalService(java.lang.ClassLoader classLoader)
public java.io.InputStream openManifest(java.lang.String retrievalToken) throws java.io.IOException
openManifest
in class AbstractArtifactRetrievalService
java.io.IOException
public java.io.InputStream openUri(java.lang.String retrievalToken, java.lang.String uri) throws java.io.IOException
openUri
in class AbstractArtifactRetrievalService
java.io.IOException