|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.ws.rs.core.Variant.VariantListBuilder org.jboss.resteasy.specimpl.VariantListBuilderImpl
public class VariantListBuilderImpl
Constructor Summary | |
---|---|
VariantListBuilderImpl()
|
Method Summary | |
---|---|
Variant.VariantListBuilder |
add()
Add the current combination of metadata to the list of supported variants, after this method is called the current combination of metadata is emptied. |
java.util.List<Variant> |
build()
Build a list of representation variants from the current state of the builder. |
Variant.VariantListBuilder |
encodings(java.lang.String... encodings)
Set the encoding[s] for this variant. |
Variant.VariantListBuilder |
languages(java.util.Locale... languages)
Set the language[s] for this variant. |
Variant.VariantListBuilder |
mediaTypes(MediaType... mediaTypes)
Set the media type[s] for this variant. |
Methods inherited from class javax.ws.rs.core.Variant.VariantListBuilder |
---|
newInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariantListBuilderImpl()
Method Detail |
---|
public java.util.List<Variant> build()
Variant.VariantListBuilder
build
in class Variant.VariantListBuilder
public Variant.VariantListBuilder add()
Variant.VariantListBuilder
list
would have four members:
Listlist = VariantListBuilder.newInstance().languages("en","fr") .encodings("zip", "identity").add().build()
add
in class Variant.VariantListBuilder
public Variant.VariantListBuilder languages(java.util.Locale... languages)
Variant.VariantListBuilder
languages
in class Variant.VariantListBuilder
languages
- the available languages
public Variant.VariantListBuilder encodings(java.lang.String... encodings)
Variant.VariantListBuilder
encodings
in class Variant.VariantListBuilder
encodings
- the available encodings
public Variant.VariantListBuilder mediaTypes(MediaType... mediaTypes)
Variant.VariantListBuilder
mediaTypes
in class Variant.VariantListBuilder
mediaTypes
- the available mediaTypes. If specific charsets
are supported they should be included as parameters of the respective
media type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |