groovy.servlet
Class TemplateServlet.TemplateCacheEntry
java.lang.Object
groovy.servlet.TemplateServlet.TemplateCacheEntry
- Enclosing class:
- TemplateServlet
private static class TemplateServlet.TemplateCacheEntry
- extends java.lang.Object
Simple cache entry that validates against last modified and length
attributes of the specified file.
- Author:
- Christian Stein
Method Summary |
java.lang.String |
toString()
|
boolean |
validate(java.io.File file)
Checks the passed file attributes against those cached ones. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
date
java.util.Date date
hit
long hit
lastModified
long lastModified
length
long length
template
Template template
TemplateServlet.TemplateCacheEntry
public TemplateServlet.TemplateCacheEntry(java.io.File file,
Template template)
TemplateServlet.TemplateCacheEntry
public TemplateServlet.TemplateCacheEntry(java.io.File file,
Template template,
boolean timestamp)
validate
public boolean validate(java.io.File file)
- Checks the passed file attributes against those cached ones.
- Parameters:
file
- Other file handle to compare to the cached values.
- Returns:
true
if all measured values match, else false
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © ${year} The Codehaus. All Rights Reserved.