OK I get it.
its funny how stuff sinks in (or doesn't in this case). I have read
that tutorial twice at least, but obviously my brain just wasn't
ready to absorb it then.
Having re-read it a 3rd time, I am starting to get the hang of it and
I can see how the Resource is key and I shouldn't care about the
upper layers of processes too much.
Thanks again for your patience and assistance and the oh so gentle
RTFM^3
J. Matthew Pryor
On 07/03/2007, at 9:21 PM, Jerome Louvel wrote:
Hi Matthew,
You are referring to older version of the Restlet API.
AbstractRestlet is
now Restlet and doesn't directly dispatch the handle() method to
handleGet(), handlePut(), etc. This is now the role of the Finder
and of the
Resource class.
First, you need to go beyond the simple method handling to become
familiar
with the concepts of Resource and Representation. You can check this
tutorial part:
http://www.restlet.org/tutorial#part12
and also the Javadocs for indications on how to easily handle each
method:
http://www.restlet.org/docs/api/org/restlet/resource/Resource.html
If you prefer, you can always test the request method manually:
if(request.getMethod().equals(Method.PUT))
Best regards,
Jerome
-----Message d'origine-----
De : J. Matthew Pryor [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 7 mars 2007 09:49
À : [email protected]
Objet : AbstractRestlet ?
OK I am off and running now, thanks for the Jetty 6.1 help.
I was wanting to handle gets and puts and deletes in different
methods, and here & there I found code examples that had handlePut()
kind of methods.
These seemed to extend AbstractRestlet, but I can't find this class
any more?
Thanks,
Matthew