Hi, the choice of the response media type has been revised in the latest version of the JAX-RX interface, which you find here: http://www.inf.uni-konstanz.de/dbis/basex/maven/org/jaxrx/jax-rx/1.2.9/ I've updated our documentation to reflect the changes; the single steps can be found here: http://docs.basex.org/wiki/REST#Response_Media_Type Hope this helps, Christian On Mon, Jan 31, 2011 at 1:23 PM, Christian Grün <christian.gruen@gmail.com> wrote:
output does allow media-type to be specified...
Thanks for the observation.. True, I overlooked this parameter. Currently, it is only used for adding a meta tag if "xhtml" or "html" is chosen as output method. An example:
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head>
…but it would perfectly make sense to adopt this parameter as general media type. Looks as if this will lead to some more changes, as the JAX-RX Interface passes on all output (serialization) parameters to the underlying implementation (BaseX) without touching them – but, nevertheless, it defines the media type of the result, depending on the value of the "wrap" parameter.
The JAX-RX Interface is currently implemented by at least two implementations (BaseX and TreeTank), so I'll have to check first when the extension can be integrated; we'll keep you updated.
Christian