|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.gwt.data.Conditions
public final class Conditions
Set of conditions applying to a request. This is equivalent to the HTTP conditional headers.
Constructor Summary | |
---|---|
Conditions()
Constructor. |
Method Summary | |
---|---|
java.util.List<Tag> |
getMatch()
Returns the modifiable list of tags for the "if-match" condition. |
java.util.Date |
getModifiedSince()
Returns the "if-modified-since" condition. |
java.util.List<Tag> |
getNoneMatch()
Returns the modifiable list of tags for the "if-none-match" condition. |
Status |
getStatus(Method method,
Representation representation)
Returns the conditional status of a variant using a given method. |
java.util.Date |
getUnmodifiedSince()
Returns the "if-unmodified-since" condition. |
boolean |
hasSome()
Indicates if there are some conditions set. |
void |
setMatch(java.util.List<Tag> tags)
Sets the "if-match" condition. |
void |
setModifiedSince(java.util.Date date)
Sets the "if-modified-since" condition. |
void |
setNoneMatch(java.util.List<Tag> tags)
Sets the "if-none-match" condition. |
void |
setUnmodifiedSince(java.util.Date date)
Sets the "if-unmodified-since" condition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Conditions()
Method Detail |
---|
public java.util.List<Tag> getMatch()
public java.util.Date getModifiedSince()
public java.util.List<Tag> getNoneMatch()
public Status getStatus(Method method, Representation representation)
method
- The request method.representation
- The representation whose entity tag or date of modification
will be tested
public java.util.Date getUnmodifiedSince()
public boolean hasSome()
public void setMatch(java.util.List<Tag> tags)
tags
- The "if-match" condition.public void setModifiedSince(java.util.Date date)
date
- The "if-modified-since" condition.public void setNoneMatch(java.util.List<Tag> tags)
tags
- The "if-none-match" condition.public void setUnmodifiedSince(java.util.Date date)
date
- The "if-unmodified-since" condition.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |