Re: Unit test Resource

2010-03-10 Thread Thierry Boileau
Hello, if you have an instance of your techIssueResource, you can set up some of its properties (preferences via the clientInfo member attribute, credentials, etc.) and invoke its get method. Otherwise, you can have a look at the org.restlet.test module. It contains some tests cases,

RE: rest practice : how do you join linked resources from 2 providers ?

2010-03-10 Thread doj
Thank you both of you. For your information we evolved in our use case so in our design : we first make a selection (through a kind of search if required) of a given item on the first resource, and make a search on the second resource with the selected items as additional filtering criterias. To

Reliabily decoding different clients resource reference (different) URIs

2010-03-10 Thread Fabian Mandelbaum
Hello there, I'm having some problems (Restlet 2.0snapshot from mid-February 2010) with resource references encoding. Concretely, my app supports DAV access to some resources, I'm currently testing with XXE (an XML editor with a dav plugin) and with Microsoft XP's 'web folders' (dav-enabled

Re: Reliabily decoding different clients resource reference (different) URIs

2010-03-10 Thread Thierry Boileau
Hello Fabian, can you tell us what kind of client generates the request? On my side, I've tested with Firefox and created a file having the same name as yours. I've tried to access it via a Directory and a Restlet instance that decodes the langOrFile attribute (according to the defined route).

RE: Tomcat with Restlet behind Proxy: Communication Error (1001)

2010-03-10 Thread asdfasdf
Hi, I have done so, and in the startup-arguments I have set to following: -DproxySet=true -DproxyHost=proxy.intern -DproxyPort=8080 -DproxyUsername=myUsername -DproxyPassword=mySecret -Dhttp.nonProxyHosts=localhost|127.0.0.1|192.168.100.210 Now the Redirector does try to access the resource

Re: Bad Status(400) returned on Android Client by the store() resource method with GAE in HTTPS instead of HTTP

2010-03-10 Thread Louis Lecaroz
Hi Thierry, Thx a lot for your quick reply. Anyway, adding the code below in the OnCreate before all others RestLet invocations/instanciations does not resolve the issue, still having the error. so as said it works well with GAE in http but not in https :( just also apologize as it is Bad

To be shorter in the issue faster in explanation, did you try the example in the url below ?

2010-03-10 Thread Louis Lecaroz
To sumarize to be faster on the issue: I was talking about this example in my previous post, so, did you try this example : http://wiki.restlet.org/docs_2.0/13-restlet/181-restlet/303-restlet.html but by accessing your GAE with https in the URL instead of http, it should failed like my

Re: Bad Status(400) returned on Android Client by the store() resource method with GAE in HTTPS instead of HTTP

2010-03-10 Thread Thierry Boileau
Hello Louis, yes it works for me, but I've updated the protocol of the client connector... Engine.getInstance().getRegisteredClients().add(new HttpClientHelper(new Client(Protocol.HTTPS))); Best regards, Thierry Boileau ps : there is an issue about the automatic discovering of

RE: Re: Bad Status(400) returned on Android Client by the store() resource method with GAE in HTTPS instead of HTTP

2010-03-10 Thread Louis Lecaroz
Arg, I really dont' understand why... but still having the issue, continues to work in html but not in https :( Did you try on a deployed instance of your webserver on the GAE appspot server ? the only jar used on my android client is org.restlet.jar I also put in the onCreate of my activity

RE: REQUEST FireFox cache control

2010-03-10 Thread webpost
Hi Jerome, We are planning to use RESTLET 2.0 as part of data services PoC. As Caching is one of the requirements, does RESTLET 2.0 support caching as indicated by you in this thread?. Also, any suggestions on integrating with EHCache as it is already used in our organization?. Any help would

Re: Bad Status(400) returned on Android Client by the store() resource method with GAE in HTTPS instead of HTTP

2010-03-10 Thread Thierry Boileau
Hello Louis, could you try by adding a dependency to the net client connector (ie add the org.restlet.ext.net.jar archive to the classpath of your android project) and with the following code? Engine.getInstance().getRegisteredClients().clear();