Requirement:

I'm setting up a private service, using restlets under Tomcat.
No browser interaction, just a data endpoint for my own use (and to
learn a little more about restlets).

I want to do a GET, specifying that I can accept application/xml+atom
as a mime type.

At the server end; Unless this is specified (in the header I think -
my knowledge of http isn't very strong)
I want the server to reject the GET (error code 406 seems right). Even
if no mime type is specified,
I will still refuse the GET.



Jerome pointed me to  extension to MIME type mappings:
http://www.restlet.org/documentation/snapshot/api/org/restlet/service/MetadataService.html


Is this the best way to do this kind of filtering please?
Or use a Tomcat filter?


regards



-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1112159

Reply via email to