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.
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
2 matches
Mail list logo