Package aQute.bnd.deployer.repository
Class CachingUriResourceHandle
java.lang.Object
aQute.bnd.deployer.repository.CachingUriResourceHandle
- All Implemented Interfaces:
aQute.bnd.service.ResourceHandle
This resource handler downloads remote resources on demand, and caches them
as local files. Resources that are already local (i.e. file:...
URLs) are returned directly.
-
Nested Class Summary
Nested classes/interfaces inherited from interface aQute.bnd.service.ResourceHandle
aQute.bnd.service.ResourceHandle.Location -
Constructor Summary
ConstructorsConstructorDescriptionCachingUriResourceHandle(URI uri, File cacheDir, aQute.bnd.service.url.URLConnector connector, String sha) -
Method Summary
Modifier and TypeMethodDescriptionaQute.bnd.service.ResourceHandle.LocationgetName()request()voidsetReporter(aQute.service.reporter.Reporter reporter)
-
Constructor Details
-
CachingUriResourceHandle
public CachingUriResourceHandle(URI uri, File cacheDir, aQute.bnd.service.url.URLConnector connector, String sha) throws IOException - Throws:
IOException
-
-
Method Details
-
setReporter
public void setReporter(aQute.service.reporter.Reporter reporter) -
getName
- Specified by:
getNamein interfaceaQute.bnd.service.ResourceHandle
-
getLocation
public aQute.bnd.service.ResourceHandle.Location getLocation()- Specified by:
getLocationin interfaceaQute.bnd.service.ResourceHandle
-
request
- Specified by:
requestin interfaceaQute.bnd.service.ResourceHandle- Throws:
Exception
-