01: package com.icesoft.faces.webapp.http.common.standard;
02:
03: import com.icesoft.faces.webapp.http.common.Response;
04: import com.icesoft.faces.webapp.http.common.ResponseHandler;
05:
06: import java.util.Date;
07:
08: public class NotModifiedHandler implements ResponseHandler {
09: private Date expirationDate;
10:
11: public NotModifiedHandler(Date expirationDate) {
12: this .expirationDate = expirationDate;
13: }
14:
15: public void respond(Response response) throws Exception {
16: response.setStatus(304);
17: response.setHeader("Date", new Date());
18: response.setHeader("Expires", expirationDate);
19: }
20: }
|