Package net.targetr.wtm3.cache
Class ResponseCache
java.lang.Object
net.targetr.wtm3.cache.ResponseCache
Quickly builds responses by caching ETags.
- Author:
- Dr Michael Gardiner
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseCache
get()
Get a resource quickly by using cache if possible.
-
Method Details
-
get
-
get
Get a resource quickly by using cache if possible.- Parameters:
path
- the path to the resource in the class path.contentType
- the type to set in the response header.- Returns:
- response containing data from the resource.
- Throws:
IOException
- An exception occurred while reading the resource from class path.
-