Re: cookie setting with safari browser

2010-01-13 Thread Thierry Boileau
Hello, you can have a look here http://www.p3pwriter.com/LRN_111.asp and here http://msdn.microsoft.com/en-us/library/ms537343%28VS.85%29.aspx. Its about compact policies. Best regards, Thierry Boileau Hi Marc, Strange thing ;-) ... but effectively the requests come from an IFrame ... I

Re: cookie setting with safari browser

2010-01-13 Thread pegpeg
hi, that works now with IE6, IE7, IE8, last Safari4 and FF , what I've done is the following: code // NB: version 0 for IE6 compatibility - confirmed // NB: domain for IE8 - nearly confirmed (tested with P3P header) CookieSetting cookie = new CookieSetting(0,

RE: Restlet client and setting the request header date

2010-01-13 Thread Garry Turkington
Hi, I too hit this problem as I wanted to set a specific value for the Date header. In absence of this ability -- I've seen issue 1001 -- can I get the value of the header client side before the request is sent in any way? I want to set another header based on the date. I thought that

RE: Re: Applying multiple security scheme's to a uri

2010-01-13 Thread webpost
Just some feedback. This is working nicely. Thank you, --KD -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2436969

RE: Re: Restlet GWT RPC 2.0

2010-01-13 Thread Kevin Daly
It's now compiling for me. The errors don't seem to cause any issues. I guess it will all be worked out in the next milestone. see this post in the bug tracker. http://restlet.tigris.org/issues/show_bug.cgi?id=1004 My last post is how I got it all working.

Re: Re: Restlet GWT RPC 2.0

2010-01-13 Thread Tim Peierls
It's still pretty annoying to have to drag in servlets. Is it really too hard to extract the important parts of GwtShellServlet into a Restlet? --tim On Wed, Jan 13, 2010 at 8:46 AM, Kevin Daly ked...@sqm.ca wrote: It's now compiling for me. The errors don't seem to cause any issues. I guess

RE: servlet mapping question

2010-01-13 Thread webpost
Isn't there a possibility to map all other requests (except /restlet/* and /index.html) to a resource? In the end it should be like this: resourceA - localhost/myapp/restlet/* index.html - localhost/myapp/ resourceB - localhost/myapp/* Please help :) hello! I run a restlet application

VirtualHosts in ServerServlet

2010-01-13 Thread Erick Fleming
Do VirtualHost work when deploying via a ServerServlet (tomcat6) or only when using Restlet as stand-alone server? -- Erick Fleming -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2437044

Re: Re: Restlet GWT RPC 2.0

2010-01-13 Thread Niclas Hedhman
On Wed, Jan 13, 2010 at 9:46 PM, Kevin Daly ked...@sqm.ca wrote: It's now compiling for me. The errors don't seem to cause any issues. I guess it will all be worked out in the next milestone. see this post in the bug tracker. http://restlet.tigris.org/issues/show_bug.cgi?id=1004 Not sure

Re: servlet mapping question

2010-01-13 Thread Thierry Boileau
Hello, I think your question is a matter of configuration of the web.xml file which is specific to jee and not to the Restlet framework. Another solution is to let your Restlet application catch all incoming requests and route them: Router router = new Router(getContext()); // handle the

Re: VirtualHosts in ServerServlet

2010-01-13 Thread Thierry Boileau
Hello Erik, VirtualHosts are operational when used inside a Servlet container too. Best regards, Thierry Boileau Do VirtualHost work when deploying via a ServerServlet (tomcat6) or only when using Restlet as stand-alone server? -- Erick Fleming

RE: Re: servlet mapping question

2010-01-13 Thread webpost
thank you very much! I used your solution and it works good. But there is still a small problem: application class: router.attach( /restlet/myresource,MyResourceA.class ); router.attach( /*, MyResourceB.class ); router.attachDefault(new Directory(getContext(), war:///)); I want to call

RE: Re: How to get HttpServletResponse object in restlet

2010-01-13 Thread Sam Bloomquist
Ok, I have a related question. I've found out how to get to the HttpServletResponse object and have passed that to the Blobstore API, where it was successfully written to and committed. Is there an example of how to turn that HttpServletResponse object into a Representation that can be

Modeling button presses that invoke server side actions via REST

2010-01-13 Thread kevinpauli
Hi, I'm embarking on a new web app and have chosen RESTlet. Now it is time to begin designing the interactions, and something sorta basic about REST has me stumped. I am trying to figure out the best way to mediate the impedance mismatch between REST and OO without falling down the slippery

Re: Modeling button presses that invoke server side actions via REST

2010-01-13 Thread Tim Peierls
It sounds like you have one URI for two distinct resources: the contents of widget 123 and the submission status of widget 123. Why not just use two URIs? /myapp/widget/123 // for the contents of widget 123 /myapp/widget/123/status // for the status of widget 123 --tim

Re: Modeling button presses that invoke server side actions via REST

2010-01-13 Thread Rhett Sutphin
Hi, Tim's idea is a good one. You might also consider having a review queue resource to which you POST widgets that are ready to be reviewed. GET on this resource would be a natural way to expose the widgets that are ready for review to the reviewers. Rhett On Jan 13, 2010, at 3:47 PM, Tim

Starting my own threads from a Restlet request

2010-01-13 Thread Marc Limotte
I'm creating a web service, which aggregates data from multiple calls to an external servers (these calls are done over RMI through a 3rd party library). I'd lke to use a pool of threads from the Java Concurrent library to make multiple requests at once. So, my first question is whether Restlet

RE: Re: servlet mapping question

2010-01-13 Thread webpost
I can't get this to work like I want: TemplateRoute route = router.attach( /, MyResourceA.class ); route.setMatchingMode(Template.MODE_STARTS_WITH); router.attachDefault(new Directory(getContext(), war:///)); this always loads MyResourceA, because the main url (localhost/MyApp/) also starts

Re: servlet mapping question

2010-01-13 Thread Thierry Boileau
Hi, could you list the distinct URIs you want to define and their taret (resource, static files, etc) ? Best regards, Thierry Boileau I can't get this to work like I want: TemplateRoute route = router.attach( /, MyResourceA.class ); route.setMatchingMode(Template.MODE_STARTS_WITH);