|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.gwt.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.
| 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. |
Reference |
getIdentifier()
Returns an optional identifier. |
List<Language> |
getLanguages()
Returns the modifiable list of languages. |
MediaType |
getMediaType()
Returns the media type. |
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 |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Variant()
public Variant(MediaType mediaType)
mediaType - The media type.| Method Detail |
|---|
public CharacterSet getCharacterSet()
public List<Encoding> getEncodings()
public Reference getIdentifier()
public List<Language> getLanguages()
public MediaType getMediaType()
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.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||