Re: @Get for many Variants

2010-01-22 Thread Thierry Boileau
Hello, you can override the ServerResource#get(Variant) method (which is historically the fundation of the Resource's behaviour, with the post, put, etc methods): @Override protected void doInit() throws ResourceException { // Declare the list of supported variants.

Re: @Get for many Variants

2010-01-22 Thread Bruno Harbulot
Hi, You could use org.restlet.engine.converter.ConverterHelper too. You might want to register your own Converter if you're not satisfied with the default ones. In this case, the if-MediaType logic will be in the ConverterHelper's toRepresentation method. public class SearchResource extends