You can simply do something like this in a ServerResource:
@Post
public void yourMethod(Representation rep) {...}
Or...
If you are extending Restlet
and overriding the handle(Request, Response)
method or similar then you can call getEntity()
on the request to get the Representation
.