|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectittp.protocol.request.Request.Headers
ittp.protocol.request.headers.ModifiedSince
This class analyse the header Last-Modified send by the client.
Constructor Summary | |
ModifiedSince(Request parent)
Constructor of the class |
Method Summary | |
java.lang.String |
getModifiedSince()
Convert to a string the date of the last modification. |
boolean |
isModifiedSince(long date)
Compare the date given by the client with the current date of the file. |
boolean |
isUsed()
Accessors for the boolean used. |
void |
setModifiedSince(java.lang.String dateText)
Mutators for the String dateText. |
java.lang.String |
toString()
Convert to a string the headers last-modified send by the client. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ModifiedSince(Request parent)
Method Detail |
public void setModifiedSince(java.lang.String dateText) throws ittpException
dateText
- String that contain the date given by the client.
ittpException
- if the headers If-Modified-Since already received or if the format of the date is incorrect.public boolean isModifiedSince(long date)
date
- long that contain the current date of the file.
public java.lang.String getModifiedSince()
public java.lang.String toString()
toString
in class Request.Headers
public boolean isUsed()
isUsed
in class Request.Headers
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |