@Override public long lastModified() { return this.delegate.lastModified(); }
if (originalWarResource.lastModified() > extractedWebAppDir.lastModified() || extractionLock.exists())
@Override public long lastModified() { if(_resources==null) throw new IllegalStateException("*resources* not set."); for(Resource r : _resources) { long lm = r.lastModified(); if (lm!=-1) return lm; } return -1; }
public String getWeakETag(String suffix) { try { StringBuilder b = new StringBuilder(32); b.append("W/\""); String name=getName(); int length=name.length(); long lhash=0; for (int i=0; i<length;i++) lhash=31*lhash+name.charAt(i); B64Code.encode(lastModified()^lhash,b); B64Code.encode(length()^lhash,b); b.append(suffix); b.append('"'); return b.toString(); } catch (IOException e) { throw new RuntimeException(e); } }
buf.append(item.length()); buf.append(" bytes </TD><TD>"); buf.append(dfmt.format(new Date(item.lastModified()))); buf.append("</TD></TR>");
buf.append(item.length()); buf.append(" bytes </TD><TD>"); buf.append(dfmt.format(new Date(item.lastModified()))); buf.append(" UTC</TD></TR>");
@Override public long lastModified() { if (override.exists()) return override.lastModified(); return base.lastModified(); }
private void setHeaders(HttpServletResponse response, Resource resource, String javascript) { response.setCharacterEncoding("UTF-8"); response.setContentType("text/javascript"); response.setDateHeader(HttpHeaders.LAST_MODIFIED, resource.lastModified()); try { int contentLength = javascript.getBytes("UTF-8").length; response.setHeader(HttpHeaders.CONTENT_LENGTH, Integer.toString(contentLength)); } catch (UnsupportedEncodingException e) { throw new RuntimeException( "The JVM does not support the compiler's default encoding.", e); } }
@Override public String toString() { return String.format("%s %s %d %s %s",_resource,_resource.exists(),_resource.lastModified(),_contentType,_lastModifiedBytes); } }
@Override public String toString() { return String.format("%s %s %d %s %s",_resource,_resource.exists(),_resource.lastModified(),_contentType,_lastModifiedBytes); } }
@Override public String getLastModifiedValue() { long lm = _resource.lastModified(); return lm>=0?DateGenerator.formatDate(lm):null; }
@Override public String toString() { return String.format("%s %s %d %s %s",_resource,_resource.exists(),_resource.lastModified(),_contentType,_lastModifiedBytes); } }
@Override public String toString() { return String.format("%s %s %d %s %s",_resource,_resource.exists(),_resource.lastModified(),_contentType,_lastModifiedBytes); } }
boolean isValid() { if (_lastModified==_resource.lastModified() && _length==_resource.length()) { _lastAccessed=System.currentTimeMillis(); return true; } if (this==_cache.remove(_key)) invalidate(); return false; }
boolean isValid() { if (_lastModified==_resource.lastModified() && _length==_resource.length()) { _lastAccessed=System.currentTimeMillis(); return true; } if (this==_cache.remove(_key)) invalidate(); return false; }
boolean isValid() { if (_lastModifiedValue == _resource.lastModified() && _contentLengthValue == _resource.length()) { _lastAccessed = System.currentTimeMillis(); return true; } if (this == _cache.remove(_key)) invalidate(); return false; }
boolean isValid() { if (_lastModified==_resource.lastModified() && _length==_resource.length()) { _lastAccessed=System.currentTimeMillis(); return true; } if (this==_cache.remove(_key)) invalidate(); return false; }
@Override public HttpField getLastModified() { long lm = _resource.lastModified(); return lm>=0?new HttpField(HttpHeader.LAST_MODIFIED,DateGenerator.formatDate(lm)):null; }
@Override public String toString() { return String.format("PrecompressedHttpContent@%x{e=%s,r=%s|%s,lm=%s|%s,ct=%s}",hashCode(),_format._encoding, _content.getResource(),_precompressedContent.getResource(), _content.getResource().lastModified(),_precompressedContent.getResource().lastModified(), getContentType()); }
@Override public String toString() { return String.format("GzipHttpContent@%x{r=%s|%s,lm=%s|%s,ct=%s}",hashCode(), _content.getResource(),_contentGz.getResource(), _content.getResource().lastModified(),_contentGz.getResource().lastModified(), getContentType()); }