Re: CRUD Operation for Calling ServerResouce with ClientProxy

2015-01-16 Thread Tim Peierls
On Fri, Jan 16, 2015 at 5:20 AM, Thierry Boileau wrote: > Here is my first refactoring: > public class GaeThingServerResource extends SelfInjectingServerResource > implements ThingResource { > ... > @Override > public ThingItem doInit() { > id = Long.parseLong(getAttri

RE: CRUD Operation for Calling ServerResouce with ClientProxy

2015-01-16 Thread Thierry Boileau
Hello, I guess I should explain the mapping between Java methods and HTTP request. Using Restlet Framework, the annotated methods follow these conventions: - there is either one or no parameter to a Java method. - such parameter is either an instance of the Representation (that wraps the flow o

CRUD Operation for Calling ServerResouce with ClientProxy

2015-01-13 Thread Xybrek
I have this ServerResource that is called by a ClientProxy: public class GaeThingServerResource extends SelfInjectingServerResource implements ThingResource { private static final Logger LOG = Logger.getLogger(GaeThingServerResource.class.getName()); @Override