Hi
Please verify the following:
I understand that a Resource should at least determine one Variant in its
Resource.getVariants() list which will probably created by "new Variant()" to
initialize the media type; where every resource should response with a
MediaType.
I understand that you can create one Variant (say a DomRepresentation) to be
returned by the default implementation of Resource.getRepresenation().
Also please answer the following question:
I don't get how a list of variants is used, I don't get how the Resource will
choose a variant from that list. Also I did not find a way to determine
Preferred Variant, Say you are sending HTTP get via a browser, how the request
of the client determine the Variant which will be chosen by a Resource, if
this ever happen.
Thanks