Ejemplo n.º 1
0
 // -- super --//
 protected long getLastModified(HttpServletRequest request) {
   final String pi = Https.getThisPathInfo(request);
   if (pi != null
       && pi.startsWith(ClassWebResource.PATH_PREFIX)
       && pi.indexOf('*') < 0 // language independent
       && !Servlets.isIncluded(request)) {
     // If a resource extension is registered for the extension,
     // we assume the content is dynamic
     final String ext = Servlets.getExtension(pi, false);
     if (ext == null || getClassWebResource().getExtendlet(ext) == null) {
       if (_lastModified == 0) _lastModified = new Date().getTime();
       // Hard to know when it is modified, so cheat it..
       return _lastModified;
     }
   }
   return -1;
 }
Ejemplo n.º 2
0
 public boolean isIncluded() {
   return Servlets.isIncluded(_request);
 }