[GroovyRestlet] GroovyRestlet is hosted as a Groovy Module

2008-02-29 Thread keke
GroovyRestlet is a simple and ease of use Groovy DSL for constructing Restlet application. Main features of GroovyRestlet: * Simple Groovy DSL syntax and shortcuts for easily constructing Restlet application * Better integration with Spring framework A simple example of GroovyRestlet DSL: bu

Re: servlet mapping question

2008-02-29 Thread Thierry Boileau
Hello all, some words to complete Stephan's answer. Let's say that the name of the WAR file is myWar. 1- Let's say that the RestletServlet is configured like this : /testServlet/* and the application as follow: router.attach("/testResource",HelloWorldResource.class); then, the resource'U

Re: Ran into difficulty getting servlet connector working.

2008-02-29 Thread Thierry Boileau
Hello Eben, here is a new snapshot: http://www.restlet.org/downloads/archives/1.1/restlet-1.1snapshot.zip Could you make tests and keep us informed? best regards, Thierry Boileau On Fri, Feb 29, 2008 at 2:43 AM, Rob Heittman <[EMAIL PROTECTED]> wrote: > I believe this was a bug in ServerServlet

RE: riap: isConfidential()?

2008-02-29 Thread Jerome Louvel
Hi Rob, I fully agree and fixed this in SVN trunk! Best regards, Jerome > -Message d'origine- > De : Rob Heittman [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 29 février 2008 02:30 > À : discuss@restlet.tigris.org > Objet : riap: isConfidential()? > > Interesting question came up i

RE: [GroovyRestlet] GroovyRestlet is hosted as a Groovy Module

2008-02-29 Thread Jerome Louvel
Hi Keke, Thanks again for your contribution! This is a nice illustration of the interest of Groovy for DSLs and an opportunity for Groovy users to leverage the Restlet project for their RESTful Web applications (http://www.restlet.org). Best regards, Jerome PS: I have also relayed the news on

RE: First steps with Restlets in Equinox OSGi

2008-02-29 Thread Jerome Louvel
Hi Frank, I'm not sure either how to achieve this, normally you would specify a context-param on your ServerServlet. Can't you specify that in OSGi Servlet service? Otherwise, you might want to check this upcoming presentation on Restlet at EclipseCon: "RESTful OSGI Web Applications Tutorial"

Re: riap: isConfidential()?

2008-02-29 Thread Rob Heittman
Awesome, thanks, Jerome! On Fri, Feb 29, 2008 at 6:06 AM, Jerome Louvel <[EMAIL PROTECTED]> wrote: > > Hi Rob, > > I fully agree and fixed this in SVN trunk! > >

RE: Restlet and Velocity template location.

2008-02-29 Thread Jerome Louvel
Hello, > Thanks Vincent,that's pretty way for restlet-1.1snapshot.I > used this way in restlet or resource: > TemplateRepresentation templateRepr= new TemplateRepresentation( > "/people.vm", > MediaType.TEXT_HTML); > ... > templateRepr.setDataModel(dataMod

Restlet 1.0.8 released

2008-02-29 Thread Jerome Louvel
Hi all, A new maintenance release of Restlet 1.0 is available. It fixes several bugs (ServerServlet adapter, Spring XML loading issue and more) and updates FreeMarker o version 2.3.12. Thanks to all the reporters and contributors! Changes log: http://www.restlet.org/documentation/1.0/changes

Restlet 1.1 M2 released

2008-02-29 Thread Jerome Louvel
Hi again! After two months of intense work we are finally releasing our next milestone. In addition to the numerous bug fixes and API enhancements, we would like to underline the following features: * Addition of a HTTP server based on the Grizzly NIO framework. This connector is the first t

Re: re servlet mapping question

2008-02-29 Thread Thierry Boileau
Hello Ted, some words to complete Stephan's answer. Let's say that the name of the WAR file is myWar. 1- Let's say that the RestletServlet is configured like this : /testServlet/* and the application as follow: router.attach("/testResource",HelloWorldResource.class); then, the resource'URI

There's a bug with follow ups on this site

2008-02-29 Thread TA
I try and do a follow up and keep getting blocked because the site thinks I 'm doing top posting. The way I got around it was to take the follow up and remove all ">" characters from the message chain and that seemed to work.

RE: Re: re servlet mapping question

2008-02-29 Thread Mitch Stewart
Ted, You do not want to duplicate the servlet mappings with Router URL attachments, as that will only work with "double" URLs. So in your example your URL would have to be: http://localhost/testServlet/dog/testServlet/dog This is assuming that you are installing your webapp under /ROOT (for Tomc

Re: Re: re servlet mapping question

2008-02-29 Thread TA
Mitch and Thierry thank you both very much, I understand now and got it working.

Re: re servlet mapping question

2008-02-29 Thread TA
Apologies for starting a new post on an existing thread but everytime I try and follow up I get a top posting error. Here is the thread on the issue Rhett, Thanks for the reply. I tried mapping to something specific and it still does not work, 404 error. I set up a route like so router.atta

Re: riap: isConfidential()?

2008-02-29 Thread Rob Heittman
To get it on the official record, Carl Scott gets credit for this suggestion :-) On Fri, Feb 29, 2008 at 7:15 AM, Rob Heittman <[EMAIL PROTECTED]> wrote: > Awesome, thanks, Jerome! >

Re: servlet mapping question

2008-02-29 Thread Leshek
This thread helps me understand some things too, thank you! Since we are trying to complete the picture :-) The myWar war name Thierry mentions becomes the default , but that can be changed. When you package the war into ear, in the application deployment descriptor in myEar/META-INF/applicatio

RE: riap: isConfidential()?

2008-02-29 Thread Jerome Louvel
That is fair, I've updated the official record :) It will appear on the next Web site update and release. Best regards, Jerome > -Message d'origine- > De : Rob Heittman [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 29 février 2008 19:07 > À : discuss@restlet.tigris.org > Objet : Re: r

RE: There's a bug with follow ups on this site

2008-02-29 Thread Jerome Louvel
Hi there, That is weird, GMane works fine for me. Which email client are you using? Best regards, Jerome > -Message d'origine- > De : news [mailto:[EMAIL PROTECTED] De la part de TA > Envoyé : vendredi 29 février 2008 16:30 > À : discuss@restlet.tigris.org > Objet : There's a bug with

Re: Ran into difficulty getting servlet connector working.

2008-02-29 Thread Eben
Hello Thierry, Tests passed. Servlet connector working perfectly with 1.1m2 release. Thank you for releasing this! -Eben On Fri, Feb 29, 2008 at 2:44 AM, Thierry Boileau <[EMAIL PROTECTED]> wrote: > Hello Eben, > > here is a new snapshot: > http://www.restlet.org/downloads/archives/1.1/restl

Problems extracting a POST request's entity

2008-02-29 Thread Sergio Saugar
Hi all, I'm developing a web-based middleware (the software of my PhD) and I'm trying to use RESTLET. I create a server (and a client) and some restlets to implement the execution dynamics of my software. I'm using XML for the representation of the resources (using JAXB). Well, I tried to

RE: Problems extracting a POST request's entity

2008-02-29 Thread Mitch Stewart
If you read the stream from the representation, or call "getText()", then the stream will be consumed and there will be no more data to read. This is also true if you debug a POST on the server side, and call "getText()". Your debugger will consume the stream and no more data will be available t