Package net.targetr.wtm3.cache
Class ResponseCache.Source
java.lang.Object
net.targetr.wtm3.cache.ResponseCache.Source
- Enclosing class:
ResponseCache
Represents a named resource loader with optional response headers.
-
Constructor Summary
ConstructorsConstructorDescriptionSource(String name, ResourceLoader loader) Constructs a new Source with the specified resource loader.Source(String name, ResourceLoader loader, Headers headers) Constructs a new Source with the specified resource loader and headers. -
Method Summary
-
Constructor Details
-
Source
Constructs a new Source with the specified resource loader.- Parameters:
name- a name for the resource sourceloader- the resource loader
-
Source
Constructs a new Source with the specified resource loader and headers.- Parameters:
name- a name for the resource sourceloader- the resource loaderheaders- the headers to associate with this source
-