RE: template question

2008-02-05 Thread Jerome Louvel
Hi all, Michael, if you don't want to introduce redundancy in your URI templates, you can also use a hierarchy of routers, or maybe use String constants to compose the URI templates. Concerning your {id} variable, it is possible to make it match any URI character. Template template =

Re: Evaluating Restlet

2008-02-05 Thread Rob Heittman
As a third party kibitzer ... I feel like saying Restlet vs. Servlet at all is a bit semantically inadmissible. It's not an or operation. You can run Restlet with, without, in, outside, talking to, or being talked to by Servlet. The scope of the javax.servlet API is intentionally narrower; all

RE: Evaluating Restlet

2008-02-05 Thread Jerome Louvel
Hi Jaime, Since the Restlet vs Servlet topic was touched, please let me include a related concern that I'm sure n00bs like me will share Jerome, in that FAQ you mention (this one I assume http://www.restlet.org/about/faq), in question #3 it says: Finally, the Restlet API is I/O agnostic

RE: Adding Cookies to a Client Request

2008-02-05 Thread Jerome Louvel
Hi Stephan, I agree for the documentation improvements. Many methods returning a modifiable list where already documented so it wasn't a pain to make sure all the remaining ones were documented as well. This is done in SVN trunk. Best regards, Jerome -Message d'origine- De :

Re: Evaluating Restlet

2008-02-05 Thread Tim Peierls
On Feb 5, 2008 3:38 AM, Jerome Louvel [EMAIL PROTECTED] wrote: However, they can't leverage NIO from the socket to the Servlet as the Servlet API has no provision for NIO as explained above. This is where the Restlet API makes the difference, by introducing the Representation class based on

RE: Evaluating Restlet

2008-02-05 Thread Jerome Louvel
Hi Tim, Very good point. Now that I've read the Java Concurrency in Practice book (excellent BTW!), I fully realize how this point is crucial. Let's tackle it with the on-going Grizzly HTTP and GWT efforts. I've added your comment here: Complete Grizzly connector

RE: RE: template question

2008-02-05 Thread Makunas, Michael
Thanks. Using Variable.TYPE_URI_ALL works. Though it would be nice to have something like Variable.TYPE_URI_ALL_WITHOUT_QUERY or something like that since {id} now includes the query string. That's not an issue in my case, though, so it works well enough. Cheers, Michael -Original

401 status code

2008-02-05 Thread Mark
Hi guys, I'm using Release 1.0.7 of the restlet API. I see a troubling response when I set a 401 error response using the API See here.. Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. GET /apiserver/ html head titleStatus page/title /head

Re: 401 status code

2008-02-05 Thread Mark
Two problems I had GET /apiserver/ should have been GET /apiserver/ HTTP/1.1 I found that using the response.setChallengeRequest(new ChallengeRequest(ChallengeScheme.HTTP_BASIC,APIServer)); Very helpful, that seems to have solved my little problem. I would still LOVE to see my raw http

RE: 401 status code

2008-02-05 Thread Jerome Louvel
Hi Mark, Thanks for following up with the solution to your issue. To see the raw headers, please check this FAQ entry: http://www.restlet.org/documentation/1.0/faq#01 Best regards, Jerome -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Mark Envoyé : mardi 5

Re: Evaluating Restlet

2008-02-05 Thread jbarciela jbarciela
Hey, isn't semantic inadmissibility the basis for thought crimes and fundamentalism? :) I want to thank you Rob for the detailed answer, I get your point about the higher abstraction level giving you more freedom from the implementation. That's definitively a good thing. When you say callbacks,

Re: Evaluating Restlet

2008-02-05 Thread Rob Heittman
Exactly ... In my case, I'm working on Restlet API support in Google Web Toolkit using XmlHttpRequest as the Client. As this is idiomatically an asynchronous facility -- regardless of whether your response is short lived (AJAX style) or long lived (Comet style), the API needs ways of handling

Re: Evaluating Restlet

2008-02-05 Thread jbarciela jbarciela
Thanks for your answer Jerome. The introductory paper was what triggered the question in my mind -- I guess I need to read Java Concurrency in Practice. Cheers Jaime On Feb 5, 2008 3:38 AM, Jerome Louvel [EMAIL PROTECTED] wrote: Hi Jaime, Since the Restlet vs Servlet topic was touched,

Re: SpringServer Parameters NOT WORKING (HELP!)

2008-02-05 Thread Kevin Conaway
How are you loading the spring config? On Feb 5, 2008 2:21 PM, dev dev [EMAIL PROTECTED] wrote: We have spent a bit of time on this and we cannot seem to find ways to get this to work for such a simple configuration. We are using version 1.1-M2. Simple method to start the server. public

Re: SpringServer Parameters NOT WORKING (HELP!)

2008-02-05 Thread dev dev
I found the problem . It works after we make the following changes (server first then component). // Start the Restlet component Server server = (Server) SpringContextLoader.getBean(server); logger.debug(value1:: + server.getContext ().getParameters().getFirstValue(key1));

Re: Jaxb representation (HELP!)

2008-02-05 Thread dev dev
Finally got every integrated to our maven 2 build. However, we got this exception when running one of our test cases (mvn test -Dtest=testjibx). We define the jiBX binding in our pom.xml. What did we do wrong? plugin groupIdorg.jibx/groupId

Atom Support

2008-02-05 Thread Michael Terrington
What's the status of Atom/APP support in Restlets? Issue 72 [1] (Atom and APP client support) indicates 1.1 M3 for delivery and the javadoc [2] warns of its experimental status. What's missing/known to be broken? Regards, Michael. [1] - http://restlet.tigris.org/issues/show_bug.cgi?id=72