|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.representation.Variant
org.restlet.representation.RepresentationInfo
public class RepresentationInfo
Information about a representation. Those metadata don't belong to the parent
Variant
class, however they are important for conditional method
processing. The advantage over the complete Representation
class is
that it is much lighter to create.
Constructor Summary | |
---|---|
RepresentationInfo()
Default constructor. |
|
RepresentationInfo(MediaType mediaType)
Constructor. |
|
RepresentationInfo(MediaType mediaType,
Date modificationDate)
Constructor. |
|
RepresentationInfo(MediaType mediaType,
Date modificationDate,
Tag tag)
Constructor. |
|
RepresentationInfo(MediaType mediaType,
Tag tag)
Constructor. |
|
RepresentationInfo(Variant variant,
Date modificationDate)
Constructor from a variant. |
|
RepresentationInfo(Variant variant,
Date modificationDate,
Tag tag)
Constructor from a variant. |
|
RepresentationInfo(Variant variant,
Tag tag)
Constructor from a variant. |
Method Summary | |
---|---|
Date |
getModificationDate()
Returns the last date when this representation was modified. |
Tag |
getTag()
Returns the tag. Note that when used with HTTP connectors, this property maps to the "ETag" header. |
void |
setModificationDate(Date modificationDate)
Sets the last date when this representation was modified. |
void |
setTag(Tag tag)
Sets the tag. Note that when used with HTTP connectors, this property maps to the "ETag" header. |
Methods inherited from class org.restlet.representation.Variant |
---|
createClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RepresentationInfo()
public RepresentationInfo(MediaType mediaType)
mediaType
- The media type.public RepresentationInfo(MediaType mediaType, Date modificationDate)
mediaType
- The media type.modificationDate
- The modification date.public RepresentationInfo(MediaType mediaType, Date modificationDate, Tag tag)
mediaType
- The media type.modificationDate
- The modification date.tag
- The tag.public RepresentationInfo(MediaType mediaType, Tag tag)
mediaType
- The media type.tag
- The tag.public RepresentationInfo(Variant variant, Date modificationDate)
variant
- The variant to copy.modificationDate
- The modification date.public RepresentationInfo(Variant variant, Date modificationDate, Tag tag)
variant
- The variant to copy.modificationDate
- The modification date.tag
- The tag.public RepresentationInfo(Variant variant, Tag tag)
variant
- The variant to copy.tag
- The tag.Method Detail |
---|
public Date getModificationDate()
public Tag getTag()
public void setModificationDate(Date modificationDate)
modificationDate
- The modification date.public void setTag(Tag tag)
tag
- The tag.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |