On a Resource, when and by what is getRepresentation() called?

2008-09-28 Thread Mark Petrovic
Good day. I'm studying the flow of the Resource example here http://www.restlet.org/documentation/1.0/firstResource#part03 We see in this code that the method "public void post(Representation entity)" does some processing, then instantiates and returns an appropriate Representation. I furt

Re: On a Resource, when and by what is getRepresentation() called?

2008-09-28 Thread Rob Heittman
Because the names of the high level methods in 1.0 were confusing, a fair bit of this was changed for Restlet 1.1. In 1.1, you are principally working with represent(...) for GET and acceptRepresentation(...) for POST. In either 1.0 or 1.1, the getRequest and getResponse methods allow you to inter

Re: On a Resource, when and by what is getRepresentation() called?

2008-09-28 Thread Mark Petrovic
I see. Thank you. Mark On Sep 28, 2008, at 4:39 PM, Rob Heittman wrote: Because the names of the high level methods in 1.0 were confusing, a fair bit of this was changed for Restlet 1.1. In 1.1, you are principally working with represent(...) for GET and acceptRepresentation(...) for PO

RE: On a Resource, when and by what is getRepresentation() called?

2008-09-28 Thread Jerome Louvel
g/> http://www.restlet.org Noelios Technologies ~ Co-founder ~ <http://www.noelios.com/> http://www.noelios.com _ De : Rob Heittman [mailto:[EMAIL PROTECTED] Envoyé : lundi 29 septembre 2008 01:40 À : discuss@restlet.tigris.org Objet : Re: On a Resource, when and by what is getRepresentation()

Re: On a Resource, when and by what is getRepresentation() called?

2008-09-29 Thread Rob Heittman
Awesome. I learn somethin' new every day! :-) On Mon, Sep 29, 2008 at 2:59 AM, Jerome Louvel <[EMAIL PROTECTED]>wrote: > Hi Rob, > > I'd just like to point out that there are now shortcut Resource#getQuery() > and getMatrix() methods that internally calls > getRequest().getResourceRef().getQue