public class LastModifiedHandler extends Object
| Constructor and Description |
|---|
LastModifiedHandler() |
LastModifiedHandler(Date lastModifiedDate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Check whether we need to generate a response for this request.
|
static boolean |
checkRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Date lastModifiedDate)
This static method is used when the resource being served by the servlet keeps track of the last modified date,
and so no state needs to be maintained by this handler.
|
void |
modified()
The content has changed, reset the modified date and the etag
|
public LastModifiedHandler()
public LastModifiedHandler(Date lastModifiedDate)
public boolean checkRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public void modified()
public static boolean checkRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Date lastModifiedDate)
Copyright © 2014 Atlassian. All rights reserved.