Hello Marcus,

though you can add the tunnel service in front of any chains of
Restlets manually, we suggest you to code your applications with
Component and Application objects. Each of them starts some dedicated
services:
 - Component: logService and statusService
 - Application: connectorService, converterService, decoderService,
metadataService, statusService, tunnelService.

best regards,
Thierry Boileau

> Thank you Thierry,
>
>  Wow, this is all so flexible. I'm very excited about the way this is going!
>  One question though - I seem to be getting the TunnelService mechanism 'for
>  free'. How come?
>
>  Cheers,
>  Marcus.
>  (I will read the AJAX related pages properly when I come to my interface - I
>  can see how this is all fitting together now)
>
>
>  "Thierry Boileau" <[EMAIL PROTECTED]> wrote in message
>  news:[EMAIL PROTECTED]
>
>
> > Hello Marcus,
>  >
>  > about point #1 have a look at this article [1] and the javadocs of the
>  > TunnelService [2], especially the parameter "method" which is used in
>  > the query string of URIs :
>  > <form action="http://kjhkjhkh/klkjlkjl?method=put"; method="post">
>  >
>  > best regards,
>  > Thierry
>  > [1] http://www.restlet.org/documentation/1.1/faq#19
>  > [2]
>  > 
> http://www.restlet.org/documentation/1.1/api/org/restlet/service/TunnelService.html
>  >
>  > On Tue, Mar 11, 2008 at 1:27 PM, Marcus <[EMAIL PROTECTED]> wrote:
>  >> Hi All,
>  >>
>  >>  Thankyou for the emails that I received with helpful webpages (Serge
>  >>  especially). My prototype (see parent post) is now working, and each
>  >>  resource is simply returning a static XML document containing parameters
>  >>  passed through in the URI.
>  >>
>  >>  I now have moved forwards and have a few more questions. I would like to
>  >> be
>  >>  able to properly handle all the CRUD operations based on the HTTP verb
>  >>  coming in. I will override the allow*() methods to return true; I will
>  >> also
>  >>  override and implement the handle*() methods too (do i need to call
>  >> super in
>  >>  these?)
>  >>
>  >>  Questions:
>  >>
>  >>  1) How can I submit PUT and DELETE HTTP requests to my URIs, to test
>  >> that my
>  >>  various handler methods are working? Obviously GET and POST ones can be
>  >>  issued by knocking up a simple form...
>  >>  2) When I eventually issue PUT and POST requests, how do I pass in data
>  >> to
>  >>  create and update (respectively) the resources?
>  >>  3) After getting all the verb methods firing off for the various
>  >> resources,
>  >>  I'll be wanting to properly persist and return real data from a
>  >> database. I
>  >>  noticed that there is a JDBC connector, that you can pass in SQL
>  >> embedded in
>  >>  XML format. Is this the proper way to do this (to keep inline with the
>  >>  framework) or would it be better to establish my own JDBC connection and
>  >>  get/modify/update/delete the data directly myself.
>  >>
>  >>  ...Getting there...
>  >>  Thanks,
>  >>  Marcus.
>  >>
>  >>
>  >>
>  >
>
>
>

Reply via email to