public class CacheManager
extends java.lang.Object
| Constructor and Description |
|---|
CacheManager(Transport transport) |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
createCache(java.net.URI location,
IProgressMonitor monitor)
Returns a local cache file with the contents of the given remote location,
or
null if a local cache could not be created. |
protected java.io.File |
getCacheDirectory()
Returns the file corresponding to the data area to be used by the cache manager.
|
protected void |
updateCache(java.io.File cacheFile,
java.net.URI remoteFile,
long lastModifiedRemote,
SubMonitor submonitor) |
public java.io.File createCache(java.net.URI location,
IProgressMonitor monitor)
throws java.io.IOException,
ProvisionException
null if a local cache could not be created.location - the remote location to be cachedmonitor - a progress monitorFile object pointing to the cache file or nulljava.io.FileNotFoundException - if neither jar nor xml index file exists at given locationAuthenticationFailedException - if jar not available and xml causes authentication failjava.io.IOException - on general IO errorsProvisionException - on any error (e.g. user cancellation, unknown host, malformed address, connection refused, etc.)OperationCanceledException - - if user cancelledprotected java.io.File getCacheDirectory()
protected void updateCache(java.io.File cacheFile,
java.net.URI remoteFile,
long lastModifiedRemote,
SubMonitor submonitor)
throws java.io.FileNotFoundException,
java.io.IOException,
ProvisionException
java.io.FileNotFoundExceptionjava.io.IOExceptionProvisionException