jodd.decora
Class LastModifiedData

java.lang.Object
  extended by jodd.decora.LastModifiedData

public class LastModifiedData
extends java.lang.Object

Holder for last modified date. Verifies if all dispatched responses updated the last-modified header. If at least one is skipped, the entire request should not have this header.


Constructor Summary
LastModifiedData()
           
 
Method Summary
 long getLastModified()
          Returns last modified date or -1.
 void startNewResponse()
          Indicates usage of new response.
 void updateLastModified(long lastModified)
          Updates last modified date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LastModifiedData

public LastModifiedData()
Method Detail

startNewResponse

public void startNewResponse()
Indicates usage of new response.


updateLastModified

public void updateLastModified(long lastModified)
Updates last modified date.


getLastModified

public long getLastModified()
Returns last modified date or -1.



Copyright © 2003-2011 Jodd Team