* date used is determined by the CacheControl annotation.
*
*/
protected void setLastModified() {
if (getClass().isAnnotationPresent(CacheControl.class)) {
CacheControl cacheControl = getClass().getAnnotation(CacheControl.class);
switch (cacheControl.value()) {
case ACTIVITY:
setLastModified(app().getLastActivityDate());
break;
case BOOT:
setLastModified(app().getBootDate());
break;
case NONE:
break;
default:
logger().warn(getClass().getSimpleName() + ": unhandled LastModified type " + cacheControl.value());
break;
}
}
}