|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.servlet.util.LastModifiedHandler
public class LastModifiedHandler
This class manages the last modified date of a single HTTP resource.
| Constructor Summary | |
|---|---|
LastModifiedHandler()
|
|
LastModifiedHandler(Date lastModifiedDate)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LastModifiedHandler()
public LastModifiedHandler(Date lastModifiedDate)
| Method Detail |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||