Re: Starting a new web application, using Restlets

2008-03-11 Thread Marcus
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

Re: Starting a new web application, using Restlets

2008-03-11 Thread Thierry Boileau
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 : http://kjhkjhkh/klkjlkjl?method=put"; method="post"> best regards, Thierry [1] http://www.restlet.org/documentation

Re: Starting a new web application, using Restlets

2008-03-11 Thread Rob Heittman
On this last point (how to do the persistence layer), there are many ways to approach it. A good quote from Jerome: > no particular persistence technology is favored by the Restlet API. Here are > some possibilities for resources: > - object database (such as db4o) > - XML database (such as eXi

Fat/Thick standalone client support

2008-03-11 Thread Nick Baker
Hello, We're working on an abstract UI framework based on Xul. It's well under way with SWT and Swing support. Our plan is to use Java2JavaScrpt to reuse UI models and event handlers. However, we need to abstract Business Object calls in a generic way. Web clients would XMLHttpRequest calls, Fat

RE: Issue 376

2008-03-11 Thread Jerome Louvel
Hi Bruno, > I've been busy with other things since I volunteered last week, so I > haven't started to work on the getRemoteUser() sub-problem yet, but I > think I've got a reasonable patch regarding the client certificates. Cool! > There are a few problems, though. > > 1. Even with a clean d

RE: Shut down a Restlet server using kill?

2008-03-11 Thread Jerome Louvel
Hi Aaron, If you run in standalone mode, then you should call stop() on the Component instance. If will stop the connectors and the applications. By default, stopping an application does nothing and is left to developer. Best regards, Jerome > -Message d'origine- > De : news [mailto

RE: Fat/Thick standalone client support

2008-03-11 Thread Jerome Louvel
Hi Nick, On the server-side, Restlet can meet your needs, exposing RESTful services as JSON or XML. If you prefer the RPC paradigm, (XML-RPC, JSON-RPC or SOAP), Restlet may not be the best fit. If you are not sure, let us know, we can provide more advices. On the client-side, Rob Heittman is wor

Re: Issue 376

2008-03-11 Thread Bruno Harbulot
Hi Jerome, Jerome Louvel wrote: 1. Even with a clean download of the SVN trunk at the moment (without my patch), I can't get it to pass all the tests (in 'verify-tests'). I've tried to build the latest code and test it on a Mac (10.5 and Java 5) and on a Linux (Java 6), but there's always o

Re: Starting a new web application, using Restlets

2008-03-11 Thread Adam Rosien
> 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 (re

RE: Root URIs under Windows

2008-03-11 Thread Jerome Louvel
Hi Paul, > Well, at least update the Javadoc so it specifically says that the > strings returned are not decoded. Actually, there is already a paragraph on this in the Javadocs (1.1 M2) at the class level, but not for each getter. I have just added a note to each getter returning encoded strin

RE: SSL and KeyStores

2008-03-11 Thread Jerome Louvel
Hi Bruno, [...] > 1. I can't find which properties need to be used for setting the > keystores and truststores used by the clients. Did I miss something? > I've had to use -Djavax.net.ssl.keyStore, and similar VM parameters. No those parameters are indeed missing :-/ > 2. As Chuck Hinson poi

SELECT values not in Request attributes

2008-03-11 Thread Dustin N. Jenkins
I'm using Restlet 1.0.8, JDK 1.5.0_10 running on Tomcat 5.5. Seems like this has been covered before but I couldn't find anything, my apologies if it's been raked over many times. If I post form data that includes a pull down menu (HTML SELECT), it doesn't show up in the request's attributes,

Confused with locale

2008-03-11 Thread Jonathan Hall
Hi, I've been looking at getting the preferred locale and I have a couple of questions. I see that getPreferredVariant() uses apaches content negotiation algorithm (http://httpd.apache.org/docs/2.2/en/content-negotiation.html#algorithm) which includes using the Accept-Language header: "|A

Re: SSL and KeyStores

2008-03-11 Thread Bruno Harbulot
Hi Jerome, Jerome Louvel wrote: Hi Bruno, [...] 1. I can't find which properties need to be used for setting the keystores and truststores used by the clients. Did I miss something? I've had to use -Djavax.net.ssl.keyStore, and similar VM parameters. No those parameters are indeed missing

Re: SELECT values not in Request attributes

2008-03-11 Thread Thierry Boileau
Hello Dustin, your web form is in fact the entity of the POST request sent to the server, thus you have access to it via request.getEntity(). There is a shortcut which allows to have a list of all input fields : Form form = request.getEntityAsForm(); for (Parameter parameter : form) { System.

Re: SELECT values not in Request attributes

2008-03-11 Thread Dustin N. Jenkins
Oh good, thanks very much! Dustin Thierry Boileau wrote: Hello Dustin, your web form is in fact the entity of the POST request sent to the server, thus you have access to it via request.getEntity(). There is a shortcut which allows to have a list of all input fields : Form form = request.ge

Re: SELECT values not in Request attributes

2008-03-11 Thread Stephan Koops
Hello Thierry, I think request.getEntityAsForm() is THE solution. Why only use it as workaround? What are I missing? best regards Stephan Thierry Boileau schrieb: Hello Dustin, your web form is in fact the entity of the POST request sent to the server, thus you have access to it via reque

advice on creating and destroying applications

2008-03-11 Thread Jim Alateras
Hi, What is the correct way to start, stop and destroy applications. I am doing the following at the moment class Application1 extends Application {...} class Application2 extends Application {...} // start a minimal version of the applicaton while i do some stuff // i.e. migration etc Appli

calling setRoot

2008-03-11 Thread Jim Alateras
Once i do Application.setRoot(...) do i need to do anything else for it to take effect. cheers

Re: Fat/Thick standalone client support

2008-03-11 Thread keke
Hi, Jerome, I am quite interested in the GWT implementation of Restlet Client API. Is there any pre-release or SNAPSHOT version available that I can take a look? On Wed, Mar 12, 2008 at 12:10 AM, Jerome Louvel <[EMAIL PROTECTED]> wrote: > > Hi Nick, > > On the server-side, Restlet can meet your

Re: Fat/Thick standalone client support

2008-03-11 Thread Nick Baker
Sounds like this GWT library would make it through the J2S compilation, though we had planned on hand-cranking some Javascript. I'm convinced that Restlets are a good fit for our thin-clients. The fat-clients are my concern. How do intra-process "server-side" calls work? Does there always have t

Re: Starting a new web application, using Restlets

2008-03-11 Thread Marcus
Hi Adam, Thanks for pointing me towards curl. What an infinitely useful little CLI utility for web development. I can see myself using this a lot from now on! I plan communicating throughout the whole REST application in XML. To test, I am simply using "curl --data-binary @input.xml --request

Re: Root URIs under Windows

2008-03-11 Thread Paul J. Lucas
On Mar 11, 2008, at 9:46 AM, Jerome Louvel wrote: Actually, there is already a paragraph on this in the Javadocs (1.1 M2) at the class level, but not for each getter. I have just added a note to each getter returning encoded strings. Thanks. I meant that it might 'clutter' the class to ad

Re: Starting a new web application, using Restlets

2008-03-11 Thread Marcus
Thankyou 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 t

Re: Starting a new web application, using Restlets

2008-03-11 Thread Marcus
Hi Rob, Thankyou for the very sound advise. I know exactly what you are saying about having an object layer that communicates through a data access layer, to a persistant storage. I think I agree, I will leave my restlet app to the side for now, and start to implement domain objects that can