Re: Jetty 6.1 support with other webapps configured

2007-03-07 Thread J. Matthew Pryor
Sorry Jerome, I really must be missing something here. How do the jetty specific classes come in to the equation? If I have the *.ext.jetty classes in my classpath, I can't see how HttpServerHelper or any of the other jetty specific classes com in to play? Thanks for your support in my

RE: Jetty 6.1 support with other webapps configured

2007-03-07 Thread Jerome Louvel
No problem, there is some magic here :) When you add the JAR of your connector in the classpath, it is automatically discovered by the Restlet engine. When you create a new Server, it internally creates a Helper instance (private member). This Helper is provided by the engine, which could for

AbstractRestlet ?

2007-03-07 Thread J. Matthew Pryor
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?

Re: Servlet Context

2007-03-07 Thread Jonathan Hall
Hey Jerome, I did have a look at the org.restlet.ext.spring.SpringContext class. It seems it requires: SpringContext springContext = new SpringContext(getContext()); springContext.getXmlConfigRefs().add(RESOURCES); Which would be the same inconvenience of hard coding the resource locations.

RE: AbstractRestlet ?

2007-03-07 Thread Jerome Louvel
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

Re: AbstractRestlet ?

2007-03-07 Thread J. Matthew Pryor
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

RE: Servlet Context

2007-03-07 Thread Jerome Louvel
Jonathan, Thanks for insisting! There is a solution but it isn't fully available yet :) It is based of the concept of WAR scheme that let you address resources inside the WAR directory using URIs like war:///path1/path2/file (very similar to file URIs). We already have a client connector for

Reliably getting multiple values for a request parameter

2007-03-07 Thread Stokes
This is quite trivial, but I want to support a URL like this: http://myhost.com/rest/foos?bar=456bar=789 (Basically saying give me a list of all Foos that reference Bar[456] or Bar[789].) In my Finder class, I use Request.getResourceRef().getQueryAsForm() to get a Form object of all the

Re: Reliably getting multiple values for a request parameter

2007-03-07 Thread Stokes
Jerome Louvel contact at noelios.com writes: Hi Stokes, This is a frequent use case. For this you can use the sublist(bar) method. The name comes from the JDK's List interface but I agree that it's not obvious at first sight. Best regards, Jerome I'll give that a try, thanks! Stokes.