ServerResource doHandle logic

2010-02-10 Thread Erick Fleming
I'm digging through the source code of ServerResource (trying to understand it more) and was wondering what use-case would require this logic: if (variant instanceof Representation) { result = (Representation) variant; } else { result = get(variant); } Is it possible t

Query string being ignored with Client.get()

2010-02-10 Thread Dustin N. Jenkins
I'm using JDK 1.6 build 18, with Fedora Core 8 and Restlet 2.0rc7 on Tomcat 6.0.24. I have a peculiar problem that started with Restlet 2.0rc7. The Client.get() calls are ignoring the query string when called: Client client = new Client(Protocol.HTTP); Response response = client.get("http://w

Re: Restlet client connecting to server with self signed certificate

2010-02-10 Thread Bruno Harbulot
Hi Rocky, On 10/02/2010 19:08, Rocky V wrote: > Bruno Harbulot wrote: >> Rocky V wrote: >>> I am on Restlet 1.1.5 and can upgrade to 1.1.8 (last known stable version >>> from restlet.org) if need arises. >>> My problem is to trust all certificates for my Restlet client using HTTPS >>> (apache comm

RE: Problems Creating Items using the addEntity Method

2010-02-10 Thread Thierry Boileau
Hello Jaime, I've seen your posts regarding the dataservices extension. I hope to find time this week to answer you. Best regards, Thierry Boileau -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2446537

RE: Routing Control to Resource class from Application

2010-02-10 Thread Thierry Boileau
Hi, following the "first steps" applications, you should be able to get the answer to your questions : http://www.restlet.org/documentation/2.0/firstResource http://www.restlet.org/documentation/2.0/firstSteps Best regards, Thierry Boileau --

RE: How to change the port the RESTlet server componenet is listening on

2010-02-10 Thread Thierry Boileau
Hello, unless you instantiate your own component (using a restlet.xml file, or specifying a "org.restlet.component" parameter in the web.xml file), the component listens on the port defined by the servlet container. In this case, this should be transparent. Best regards, Thierry Boileau

RE: ERROR 404 : restlet engine or camel-restlet issue ?

2010-02-10 Thread Thierry Boileau
Hello Bruno, regarding the dependencies, I think you can remove the "com.n​oelios.restlet" artifacts which reference the 1.1 branch. It should work without them. What do you mean by "and it works."? Are you able to send a post request to http://localhost:909​0/poc.camel.enabler-​0.0.1-SNAPSHOT

How to change the port the RESTlet server componenet is listening on

2010-02-10 Thread Mark Larkin
Hello, I have put together an application based on the RESTlet First Resource sample code. The server component runs within Tomcat. All works fine (I can send data to the RESTlet server and it receives it. However, I would like to change the port it is listening on (it is currently listening o

Re: Restlet client connecting to server with self signed certificate

2010-02-10 Thread Rocky V
Bruno Harbulot wrote: > > Hi Rocky, > > Rocky V wrote: >> I am on Restlet 1.1.5 and can upgrade to 1.1.8 (last known stable version >> from restlet.org) if need arises. >> My problem is to trust all certificates for my Restlet client using HTTPS >> (apache common). > > Am I right in understandin

Re: M7 and TunnelService fix still not working for IE7/8 (or so it seems)

2010-02-10 Thread Fabian Mandelbaum
Bonjour Thierry ! I've got the snapshot, deployed it, and still got problems. Let me explain: I get the HTML representation now, however there's a small catch. The HTML page contains AJAX code that makes some requests in the background to build parts of the page. One of such requests states Accep

RE: Re: Restlet and GWT 2.0

2010-02-10 Thread webpost
Hello Thierry, I did not succeed to run the test example you sent. I got a class not found exception on org.restlet.ext.gwt.GwtShellServletWrapper. It seems that this class is not compatible with GWT 2.0. Am I right? If so, what is the way to do? Thanks, Christophe. ---

Re: Restlet client connecting to server with self signed certificate

2010-02-10 Thread Bruno Harbulot
Hi Rocky, Rocky V wrote: > I am on Restlet 1.1.5 and can upgrade to 1.1.8 (last known stable version > from restlet.org) if need arises. > My problem is to trust all certificates for my Restlet client using HTTPS > (apache common). Am I right in understanding that you want your client to trust an

Re: Routing Control to Resource class from Application

2010-02-10 Thread Thierry Boileau
Hello, if you target the "/search" resource, the "routing" code transfers the request/response pair to a new (and dedicated) instance of the UserResource class. What do you mean by "The process not goes to the resource class."? When you want to target the "/search" URI, do you get a 404 respons

Re: Extending Directory and DirectoryServerResource to have far-expiring static resources

2010-02-10 Thread Thierry Boileau
Hello Fabian, thanks again for your report that helps to fix an issue introduced a long time ago (november 2007)... As you may know, the directory relies on a client connector (generally defined on the Component). Such client connector supports a "timeToLive" parameter which helps to calculate

Routing Control to Resource class from Application

2010-02-10 Thread webpost
Hi, I would like to know how the control goes to the resource class after the code router.attach("/search",UserResource.class); I have done this in Application Class, but The process not goes to the resource class. What else i have to follow to map the resource class and to control flow t