Using Restlet 2.0, I have enabled file extension conneg and have a 
ServerResource serving plain text and JSON using the @Get("txt") and 
@Get("json") annotations.  Works great.

However, hitting the server with either

http://blah_blah/file.xml
http://blah_blah/file

is equivalent to 

http://blah_blah/file.txt

Similarly, file.man gets me the JSON response.

How can I restrict the allowable extensions to strictly .txt and .json?

Thanks,
Lee

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

Reply via email to