|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.ws.rs.core.Variant
public class Variant
Abstraction for a resource representation variant.
| Nested Class Summary | |
|---|---|
static class |
Variant.VariantListBuilder
A builder for a list of representation variants. |
| Constructor Summary | |
|---|---|
Variant(MediaType mediaType,
java.lang.String language,
java.lang.String encoding)
Create a new instance of Variant |
|
| Method Summary | |
|---|---|
java.lang.String |
getEncoding()
Get the encoding of the variant |
java.lang.String |
getLanguage()
Get the language of the variant |
MediaType |
getMediaType()
Get the media type of the variant |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Variant(MediaType mediaType,
java.lang.String language,
java.lang.String encoding)
mediaType - the media type of the variant - may be nulllanguage - the language of the variant - may be nullencoding - the content encoding of the variant - may be null| Method Detail |
|---|
public java.lang.String getLanguage()
public MediaType getMediaType()
public java.lang.String getEncoding()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||