If you are working from inside a Resource subclass, you should be able to use getResponse().setEntity() to modify the body of the response that returns to the client. Is that what you're after?
On Thu, Jan 8, 2009 at 10:46 AM, Kat Kat <dokedu...@gmail.com> wrote: > Hello All, > > First I found Restlet a great REST framework in Java. > > I think I have a common requirement. We use acceptRepresentation method in > a class that extends from Resource class to accept POST requests. This > simple enough to use. To test, I did POST to a specific URL that maps to the > above controller and it works. > > Now I want to return something from the acceptRepresentation method after > it accepts the POST requests. Since the parent method in the Resource.java > the acceptRepresentation method is void, the method in the extending class > cannot return anything. > > I can very well change this but I don't want to change the Restlet code and > wished to check with other Restlet users how they are doing because I think > this might be common requirement. > > Any directions would be helpful. > > Thanks much. > > ------------------------------------------------------ > > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1011864 >