Re: client POSTing

2006-10-25 Thread Henry Story
Thanks a lot for the help and the framework :-) I had not understood than one had to pass via the message class. Thanks again, Henry On 25 Oct 2006, at 20:49, Jerome Louvel wrote: Hi Henry, The API doesn't provide concrete implementations because there could be so many. You can com

Address already in use (b19)

2006-10-25 Thread Sean Landis
I am having trouble transitioning to b19. I am using the ServerServlet to integrate with Tomcat. I have a class that extends Application and has the following: public JDomApplication(Context context) { super(context); } @Override public Restlet createRoot() { // Create our restlet

Re: client POSTing

2006-10-25 Thread Jerome Louvel
Hi Henry, The API doesn't provide concrete implementations because there could be so many. You can compare it to the Servlet API which simply provides an OutputStream. However, the NRE does provide many concrete representation classes (FreeMarker template, InputStream-based, OutputStream-bas

client POSTing

2006-10-25 Thread Henry Story
Hi, I am writing an Atom client and would like to POST an to a collection. I looked at the atom source code, but could not quite work out how this is meant to work. As far as I can see one needs to do something like this Request request = new Request(Method.POST, getHref(), member); wher

RE: Eclipse again

2006-10-25 Thread A.J. Barnes
Thanks for that Jerome. At least I know I wasn't on the right track to start with. Really was just wondering if anyone else was using Restlet Client as part of the Workbench to do communications on a regular basis. My solution is working OK for me, but seeing if anyone else had ideas or experience.

RE: Eclipse again

2006-10-25 Thread Jerome Louvel
HI AJ, I use "Run as JUnit test" otherwise I do get some classloading issue (unable to register RI, etc.). I don't know why, it must be an issue with Eclipse. Haven't had time to investigate this more. Anyway, the first option works very well for me, allows debugging, etc. Best regards, Jerome

RE: Eclipse again

2006-10-25 Thread A.J. Barnes
Just to check Jerome, are you running as a JUnit Test or a JUnit Plug-in Test? If run as a plug-in test a lot more goes on, including starting up a new test workbench and all the classlaoders associated with that - so you acutally see a new instance of Eclipse running. This really does seem to mak

RE: Eclipse again

2006-10-25 Thread Jerome Louvel
Hi AJ, In the Restlet distribution, there is a "/src/com.noelios.restlet.test" directory that contains a plug-in project that serves as a suite of JUnit tests. It is working fine within Eclipse, even when I run the tests with "Run as JUnit test case...". I'm not sure what goes wrong in your case