SnapshotUrlAssetLocator
final class SnapshotUrlAssetLocator
Implements: IAssetLocator
Package: dev.joid.test.snapshot · Module: tool-testkit · Source: SnapshotUrlAssetLocator.java
Downloads an http or https resource once into the snapshot area of the cache folder, so that later snapshot runs work offline.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| SnapshotUrlAssetLocator() | Creates the locator. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
boolean | supports(Object handle) | If true, the handle is a string that starts with http:// or https://. |
Asset | locate(Object handle) | Returns an asset that reads the cached download of the URL, downloading it at the first read. |
Creation details
Section titled “Creation details”SnapshotUrlAssetLocator
Section titled “SnapshotUrlAssetLocator”SnapshotUrlAssetLocator()
Creates the locator.
Method details
Section titled “Method details”supports
Section titled “supports”boolean supports(Object handle)
If true, the handle is a string that starts with http:// or https://.
locate
Section titled “locate”Asset locate(Object handle)
Returns an asset that reads the cached download of the URL, downloading it at the first read.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
