|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.resource.Variant
public class Variant
Descriptor for available representations of a resource. It contains all the
important metadata about a representation but is not able to actually serve
the representation's content itself.
For this, you need to use the Representation subclass.
Field Summary | |
---|---|
static long |
UNKNOWN_SIZE
Deprecated. Use the Representation.UNKNOWN_SIZE constant instead. |
Constructor Summary | |
---|---|
Variant()
Default constructor. |
|
Variant(MediaType mediaType)
Constructor. |
Method Summary | |
---|---|
CharacterSet |
getCharacterSet()
Returns the character set or null if not applicable. |
java.util.List<Encoding> |
getEncodings()
Returns the modifiable list of encodings applied to the entity-body. |
java.util.Date |
getExpirationDate()
Deprecated. Use the Representation.getExpirationDate() method
instead. |
Reference |
getIdentifier()
Returns an optional identifier. |
java.util.List<Language> |
getLanguages()
Returns the modifiable list of languages. |
MediaType |
getMediaType()
Returns the media type. |
java.util.Date |
getModificationDate()
Deprecated. Use the Representation.getModificationDate() method
instead. |
long |
getSize()
Deprecated. Use the Representation.getSize() method instead. |
Tag |
getTag()
Deprecated. Use the Representation.getTag() method instead. |
void |
setCharacterSet(CharacterSet characterSet)
Sets the character set or null if not applicable. |
void |
setEncodings(java.util.List<Encoding> encodings)
Sets the list of encodings applied to the entity-body. |
void |
setExpirationDate(java.util.Date expirationDate)
Deprecated. Use the Representation.setExpirationDate(Date) method
instead. |
void |
setIdentifier(Reference identifier)
Sets the optional identifier. |
void |
setIdentifier(java.lang.String identifierUri)
Sets the identifier from a URI string. |
void |
setLanguages(java.util.List<Language> languages)
Sets the list of languages. |
void |
setMediaType(MediaType mediaType)
Sets the media type. |
void |
setModificationDate(java.util.Date modificationDate)
Deprecated. Use the Representation.setModificationDate(Date)
method instead. |
void |
setSize(long expectedSize)
Deprecated. Use the Representation.setSize(long) method instead. |
void |
setTag(Tag tag)
Deprecated. Use the Representation.setTag(Tag) method instead. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final long UNKNOWN_SIZE
Representation.UNKNOWN_SIZE
constant instead.
Constructor Detail |
---|
public Variant()
public Variant(MediaType mediaType)
mediaType
- The media type.Method Detail |
---|
public CharacterSet getCharacterSet()
public java.util.List<Encoding> getEncodings()
@Deprecated public java.util.Date getExpirationDate()
Representation.getExpirationDate()
method
instead.
public Reference getIdentifier()
public java.util.List<Language> getLanguages()
public MediaType getMediaType()
@Deprecated public java.util.Date getModificationDate()
Representation.getModificationDate()
method
instead.
@Deprecated public long getSize()
Representation.getSize()
method instead.
@Deprecated public Tag getTag()
Representation.getTag()
method instead.
public void setCharacterSet(CharacterSet characterSet)
characterSet
- The character set or null if not applicable.public void setEncodings(java.util.List<Encoding> encodings)
encodings
- The list of encodings applied to the entity-body.@Deprecated public void setExpirationDate(java.util.Date expirationDate)
Representation.setExpirationDate(Date)
method
instead.
expirationDate
- The expiration date.public void setIdentifier(Reference identifier)
identifier
- The identifier.public void setIdentifier(java.lang.String identifierUri)
identifierUri
- The identifier to parse.public void setLanguages(java.util.List<Language> languages)
languages
- The list of languages.public void setMediaType(MediaType mediaType)
mediaType
- The media type.@Deprecated public void setModificationDate(java.util.Date modificationDate)
Representation.setModificationDate(Date)
method instead.
modificationDate
- The modification date.@Deprecated public void setSize(long expectedSize)
Representation.setSize(long)
method instead.
expectedSize
- The expected size in bytes if known, -1 otherwise.@Deprecated public void setTag(Tag tag)
Representation.setTag(Tag)
method instead.
tag
- The tag.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |