|
||||||||||
| 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. |
List<Encoding> |
getEncodings()
Returns the modifiable list of encodings applied to the entity-body. |
Date |
getExpirationDate()
Deprecated. Use the Representation.getExpirationDate() method
instead. |
Reference |
getIdentifier()
Returns an optional identifier. |
List<Language> |
getLanguages()
Returns the modifiable list of languages. |
MediaType |
getMediaType()
Returns the media type. |
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(List<Encoding> encodings)
Sets the list of encodings applied to the entity-body. |
void |
setExpirationDate(Date expirationDate)
Deprecated. Use the Representation.setExpirationDate(Date) method
instead. |
void |
setIdentifier(Reference identifier)
Sets the optional identifier. |
void |
setIdentifier(String identifierUri)
Sets the identifier from a URI string. |
void |
setLanguages(List<Language> languages)
Sets the list of languages. |
void |
setMediaType(MediaType mediaType)
Sets the media type. |
void |
setModificationDate(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 List<Encoding> getEncodings()
@Deprecated public Date getExpirationDate()
Representation.getExpirationDate() method
instead.
public Reference getIdentifier()
public List<Language> getLanguages()
public MediaType getMediaType()
@Deprecated public 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(List<Encoding> encodings)
encodings - The list of encodings applied to the entity-body.@Deprecated public void setExpirationDate(Date expirationDate)
Representation.setExpirationDate(Date) method
instead.
expirationDate - The expiration date.public void setIdentifier(Reference identifier)
identifier - The identifier.public void setIdentifier(String identifierUri)
identifierUri - The identifier to parse.public void setLanguages(List<Language> languages)
languages - The list of languages.public void setMediaType(MediaType mediaType)
mediaType - The media type.@Deprecated public void setModificationDate(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 | |||||||||