|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.excalibur.source.impl.validity.ExpiresValidity
public final class ExpiresValidity
A validation object that holds an expiration date. When the defined time/date has arrived, this validity object is not valid any more.
Field Summary |
---|
Fields inherited from interface org.apache.excalibur.source.SourceValidity |
---|
INVALID, UNKNOWN, UNKNWON, VALID |
Constructor Summary | |
---|---|
ExpiresValidity(long expires)
Constructor |
Method Summary | |
---|---|
int |
isValid()
Checks if the expires date is already reached. |
int |
isValid(SourceValidity newValidity)
This method is never invoked as isValid() can always perform
the complete check. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExpiresValidity(long expires)
expires
- The delta from now when this validity object gets invalid.Method Detail |
---|
public int isValid()
isValid
in interface SourceValidity
SourceValidity.isValid()
public int isValid(SourceValidity newValidity)
isValid()
can always perform
the complete check.
isValid
in interface SourceValidity
SourceValidity.isValid(SourceValidity)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |