public class RepresentationInfo extends Variant
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 and Description |
|---|
RepresentationInfo()
Default constructor.
|
RepresentationInfo(MediaType mediaType)
Constructor.
|
RepresentationInfo(MediaType mediaType,
java.util.Date modificationDate)
Constructor.
|
RepresentationInfo(MediaType mediaType,
java.util.Date modificationDate,
Tag tag)
Constructor.
|
RepresentationInfo(MediaType mediaType,
Tag tag)
Constructor.
|
RepresentationInfo(Variant variant,
java.util.Date modificationDate)
Constructor from a variant.
|
RepresentationInfo(Variant variant,
java.util.Date modificationDate,
Tag tag)
Constructor from a variant.
|
RepresentationInfo(Variant variant,
Tag tag)
Constructor from a variant.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getModificationDate()
Returns the last date when this representation was modified.
|
Tag |
getTag()
Returns the tag.
|
void |
setModificationDate(java.util.Date modificationDate)
Sets the last date when this representation was modified.
|
void |
setTag(Tag tag)
Sets the tag.
|
createClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, hashCode, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toStringpublic RepresentationInfo()
public RepresentationInfo(MediaType mediaType)
mediaType - The media type.public RepresentationInfo(MediaType mediaType, java.util.Date modificationDate)
mediaType - The media type.modificationDate - The modification date.public RepresentationInfo(MediaType mediaType, java.util.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, java.util.Date modificationDate)
variant - The variant to copy.modificationDate - The modification date.public RepresentationInfo(Variant variant, java.util.Date modificationDate, Tag tag)
variant - The variant to copy.modificationDate - The modification date.tag - The tag.public java.util.Date getModificationDate()
public Tag getTag()
public void setModificationDate(java.util.Date modificationDate)
modificationDate - The modification date.public void setTag(Tag tag)
tag - The tag.Copyright © 2005-2024 Restlet.