Re: Routing not-so-restful GET requests

2008-02-22 Thread William Pietri
Great question! That's something I should have mentioned initially. It is of the attach("/",yourRestlet) approach, set to exact match. I use the default route for handling things unmapped. That currently returns a 404 page. William > Just curious, did you attach the Restlet at / with > attachDe

Re: Routing not-so-restful GET requests

2008-02-22 Thread Rob Heittman
Just curious, did you attach the Restlet at / with attachDefault(yourRestlet) or attach("/",yourRestlet), or something else? On Fri, Feb 22, 2008 at 8:05 PM, William Pietri <[EMAIL PROTECTED]> wrote: > To my initial surprise, the Router doesn't route that to my restlet at > "/". >

Routing not-so-restful GET requests

2008-02-22 Thread William Pietri
I'm taking a standalone Restlet web app that I've built and porting it to Facebook. One integration option is where you put your app in an iframe. They then call your server at the specified URL, tacking on a ton of parameters. So if I have it up at myapp.example.com, their call would start off w

Re: Uri pattern issue related with concurrence

2008-02-22 Thread Paulo Silveira
Hi, Thank you, I check it out today and it worked fine. Best regards, Paulo 2008/2/21, Jerome Louvel <[EMAIL PROTECTED]>: > > > Hi Paulo, > > Thanks for the detailed bug report. I have made the Template thread safe > in > both 1.0 branch and SVN trunk. > > Could you test and let me know if every

Unable to pass parameter to a Resource -- restlet application deployed on tomcat

2008-02-22 Thread Nilesh Vyas
Hi All, I am developing a test application using restlet (deployed on tomcat) that would connect to a backend database. The application is successfully deployed on tomcat but the challenge I am facing is passing a parameter using get method. I am using the following url to fire a request : http

Re: Confusion with filter

2008-02-22 Thread Tim Peierls
Thierry, I'm curious: Why is createRoot() synchronized? --tim On Fri, Feb 22, 2008 at 2:18 PM, Thierry Boileau <[EMAIL PROTECTED]> wrote: > Hi Chris, > > assuming that you you are using an application like that : > > public class YourApplication extends Application { >@Override >public

Re: Confusion with filter

2008-02-22 Thread Chris
Yes thats perfect. Thank you. Now I understand a little better and things are starting to click. thx, -Chris Thierry Boileau wrote: Hi Chris, assuming that you you are using an application like that : public class YourApplication extends Application { @Override public synchronized

Re: Confusion with filter

2008-02-22 Thread Thierry Boileau
Hi Chris, assuming that you you are using an application like that : public class YourApplication extends Application { @Override public synchronized Restlet createRoot() { Router router = new Router(getContext()); //defines routes ... return router; } } Assum

Confusion with filter

2008-02-22 Thread Chris
I'm new to restlet and I'm having trouble understanding how to connect a filter. I've instantiated my filter but it isn't active. Do I need to attach it to the router? Nothing I've tried seems to work. regards, -Chris

RE: Congratulation!"Restlet: Official Developer's Guide to RESTful Web Applications in Java" will be out!

2008-02-22 Thread Jerome Louvel
Hi all, It seems that Dan found out about the upcoming release earlier than I expected. We are busy writing the manuscript, so there is still a long way to go before you can pick up the book at your local bookstore :) The book will cover Restlet 1.1 which we hope to release at the same time. The

problem serving up mp4 video for iphone

2008-02-22 Thread Andy Roberts
My REST service has to also serve static mp4 video files - for use on an iPhone. I'm having problems where the iPhone won't play the video files when I call an open() command on the file URL which is located in the static content area of my restlet application. My URL is targeting the /data resou

Re: CLOSE_WAIT and FIN_WAIT_2

2008-02-22 Thread John D. Mitchell
On Fri, Feb 22, 2008 at 6:42 AM, Kevin Conaway <[EMAIL PROTECTED]> wrote: [...] > Which is better: > Having sockets on the client side in FIN_WAIT_2 and CLOSE_WAIT > or > Having sockets on the server side in TIME_WAIT Well, if you ask generically then the answer is: it depends. I.e., if you're ta

Re: Congratulation!“Restlet: Official D eveloper’s Guide to RESTful Web Application s in Java” will be out!

2008-02-22 Thread Jean-Yves Cronier
And, Which version is concerned ? RESTlet 1.0 or RESTlet 1.1 ? Jean-Yves Cronier a écrit : Is a french version planned ?

Re: CLOSE_WAIT and FIN_WAIT_2

2008-02-22 Thread Kevin Conaway
Which is better: Having sockets on the client side in FIN_WAIT_2 and CLOSE_WAIT or Having sockets on the server side in TIME_WAIT On Tue, Feb 19, 2008 at 8:00 AM, Jerome Louvel <[EMAIL PROTECTED]> wrote: > > Hi Kevin, > > [...] > > > If the client does consume the response entity, is he still

Re: Congratulation!“Restlet: Official D eveloper’s Guide to RESTful Web Application s in Java” will be out!

2008-02-22 Thread Jean-Yves Cronier
Is a french version planned ?

RE: Guard

2008-02-22 Thread Jerome Louvel
Hi Stephan, > what about put the javax.security.Principal in the request attributes > after successfull authentication? This is a possibility, maybe a good compromise that would also you to get rid of your subclass? > And, BTW: > You wrote that you put all authentication logic in the engine (i

Re: Congratulation!“Restlet: Official Developer’s Guide to RESTful Web Applications in Java” will be out!

2008-02-22 Thread cleverpig
On Fri, Feb 22, 2008 at 2:41 PM, Vincent <[EMAIL PROTECTED]> wrote: > > > Title:Restlet: Official Developer's Guide to RESTful Web Applications in > Java > > Great news! > Any idea when the book will be available? May 2008. > I'll buy a copy for sure. cool! > > -vincent. > > -- cleverpi