Class CachingUriResourceHandle

java.lang.Object
aQute.bnd.deployer.repository.CachingUriResourceHandle
All Implemented Interfaces:
aQute.bnd.service.ResourceHandle

public class CachingUriResourceHandle extends Object implements 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.

  • 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

      public String getName()
      Specified by:
      getName in interface aQute.bnd.service.ResourceHandle
    • getLocation

      public aQute.bnd.service.ResourceHandle.Location getLocation()
      Specified by:
      getLocation in interface aQute.bnd.service.ResourceHandle
    • request

      public File request() throws Exception
      Specified by:
      request in interface aQute.bnd.service.ResourceHandle
      Throws:
      Exception