When a request from a browser to a Restlet application is processed, the request will have many accepted media types. It appears that Restlet scores the accepted media types to prefer APPLICATION_XML and TEXT_XML over TEXT_HTML.
This makes it difficult to have a resource support TEXT_HTML and APPLICATION_XML as the resource cannot distinguish between requests originating from a browser or a web service client in the case where the client is sending an XML representation such as via JaxbRepresentation. Are we misusing meida types? Or are the preferred scores correct? It seems a browser should prefer TEXT_HTML over any XML. Thanks, Sean