public void notModified(Date lastModified, Date date) { status = 304; noContent(); SimpleDateFormat httpDateFormat = makeStandardHttpDateFormat(); addHeader("Date", httpDateFormat.format(date)); setLastModifiedHeader(lastModified); addHeader("Cache-Control", "private"); }
protected void addContentHeaders() { addHeader("Content-Type", getContentType()); }
public void setLastModifiedHeader(Date date) { addHeader("Last-Modified", makeStandardHttpDateFormat().format(date)); }
public void setMaxAge(int age) { addHeader("Cache-Control", "max-age=" + age); }
public void redirect(String contextRoot, String location) { status = 303; addHeader("Location", contextRoot + location); }