RE: Set cookies

2011-01-12 Thread Paul Morris
I saw an entry similar to this elsewhere with an answer but unfortunately it doesn't work for me. I've tried the following: getResponse().getCookieSettings().add(myCookieSetting); and... SeriesCookieSetting cookies = getResponse().getCookieSettings(); cookies.add(myCookieSetting);

Restlet Transformation - XSLT

2011-01-12 Thread Jacqui Githaiga
Hi, I am wanting to perform an XSLT transformation on XML input. Please see code snippet below: if (queryString != null) { Representation representation = new StringRepresentation(queryString, MediaType.APPLICATION_RDF_XML); FileRepresentation

Not getting Exception Message from Service (Resource) to Client.

2011-01-12 Thread Praveen
Hi All, We are developing an application using Restlet. We are struggling with an issue in our application. We are calling a rest service from client and we are unable to catch the exception which is thrown from server resource in Restlet. Following is the code we have written inside the

Not getting Exception from Service (Resource) to Client.

2011-01-12 Thread lkodiganti
Hi All, We are developing an application using Restlet. We are struggling with an issue in our application. We are calling a rest service from client and we are unable to catch the exception which is thrown from server resource in Restlet. Following is the code we have written inside the

Re: Not getting Exception Message from Service (Resource) to Client.

2011-01-12 Thread Thierry Boileau
Hello Praveen, you can have a look at the user guide here : http://wiki.restlet.org/docs_2.1/13-restlet/202-restlet.html You need to create your own StatusService, override its getRepresentation method and set a new instance to the aplication in its constructor: public TestApplication() {

Re: Re: org.restlet.lib.org.json has malformed Maven data. Any plans to release it with valid metadata?

2011-01-12 Thread Thierry Boileau
Hello Romain, the artifacts have been regenerated, do they fit your need? Best regards, Thierry Boileau Hello Romain, the maven artifacts will regenerated this evening. I'll keep you informed. Best regards, Thierry Boileau Hello I still have the same error with the version 2.0.4 If

Re: Request to servlet : parameter key/value

2011-01-12 Thread Thierry Boileau
Hello Hubert, As said Stephan, a JsonRepresentation is only able to generate representations with the json format. You can use the Form class, and its getWebRepresentation if you intend to to send a application/x-www-form- urlencoded representation. Having said that, you can handle json

Routing across multiple servers in Restlet application

2011-01-12 Thread Praveen
Hi All, We are implementing an application using Restlet. In this, We need a requirement, My Restlet application having different components(modules) which needs to run on different servers(machines). For example, I have *x, y, z* modules which are installed in *a, b, c* machines respectively.

Re: No represnetation entity behind guard

2011-01-12 Thread Thierry Boileau
Hello, what happens in your case? Could send some reproductible test case? Best regards, Thierry Boileau How do you find out where the entity is being consumed? I am having a similar problem but I have never used the entity myself, and i have no Guards only Applications and Routers. (None of

Re: GWT Put Request

2011-01-12 Thread Thierry Boileau
Hello Charlie, thanks for reporting this bug. The fix is now part of the svn repository (2.1 trunk and 2.0 branch). Best regards, Thierry Boileau On Thu, Dec 30, 2010 at 10:29 AM, Charlie Mason charlie@gmail.com wrote: Hi All, I am trying to get a put request working via the GWT

RE: JSON Put request with String Representation

2011-01-12 Thread Thierry Boileau
Hello charlie, can you try to override the ServerResource#getVariants method? Best regards, Thierry boileau -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2697595

RE: Issues in migrating to 2.1 M2

2011-01-12 Thread Thierry Boileau
Hello RK, I guess you are using the internal client and server connector. These connectors are completely rewritten for the the 2.1 release using the nio packages, which explains why they were unstable. I think the situation is quite better now. If you still meet problems, you can rely instead

Re: Using ClientResource inside ChallengeAuthenticator

2011-01-12 Thread Thierry Boileau
Hello, there is no ovious reason for avoiding you to issue any request from the Verifier class. You should see the same behaviour when issuing the same request in a standalone main method. What happens if you hit the resource directly? Best regards, Thierry Boileau Hi, We are using

Re: What replaces GetEntityAsForm?

2011-01-12 Thread Thierry Boileau
Hello, As far as I can tell from the javadocs, the Application Router shouldn't be consuming any entity information? It just sends the request to Resource instances? yes, you're right. The routing process does not consume the reques's entity. My Application does have two similar routes:

Re: Re: DomRepresentation.getNode(someXpath) returns null

2011-01-12 Thread Thierry Boileau
Hello, quite strange, I send a sample test code that works for me. Does it work for you to? best regards, Thierry Boileau DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory .newInstance(); DocumentBuilder documentBuilder =

RE: GWT-Restlet Error: java.io.IOException: Can

2011-01-12 Thread Thierry Boileau
Hello, I think that this error happens when the server sends an entity having a content-type different from the gwt serialized type. In order to give the ability to convert object to such representation, you must include the gwt server side extension (org.restlet.ext.gwt.2.0.4.jar) and its

New OAuth 2 extension in incubator

2011-01-12 Thread Jerome Louvel
Hi all, I’m pleased to announce a brand new OAuth extension for the Restlet Framework, supporting a very recent RFC draft defining OAuth version 2.0 has been contributed by Ericsson Labs. The code is currently in the Restlet incubator and goes through the usual review and adjustment