|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.servlet.TemplateServlet.TemplateCacheEntry
class TemplateServlet.TemplateCacheEntry
Simple cache entry that validates against last modified and length attributes of the specified file.
Field Summary | |
---|---|
Date |
date
|
long |
hit
|
long |
lastModified
|
long |
length
|
Template |
template
|
Constructor Summary | |
TemplateServlet.TemplateCacheEntry(File file, Template template)
|
|
TemplateServlet.TemplateCacheEntry(File file, Template template, boolean timestamp)
|
Method Summary | |
---|---|
String
|
toString()
|
boolean
|
validate(File file)
Checks the passed file attributes against those cached ones. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Field Detail |
---|
Date date
long hit
long lastModified
long length
Template template
Constructor Detail |
---|
public TemplateServlet.TemplateCacheEntry(File file, Template template)
public TemplateServlet.TemplateCacheEntry(File file, Template template, boolean timestamp)
Method Detail |
---|
public String toString()
public boolean validate(File file)
true
if all measured values match, else false
Copyright © 2003-2009 The Codehaus. All rights reserved.