What to do about sessions?

2010-04-20 Thread dj
Hi, I'm using restlet with google app engine. I need to support session state. If a user logs in, I want to remember that they're still logged in when they switch between pages, so they don't have to keep re-authenticating. I read through the posts here about sessions not being supported by

RE: Re: What to do about sessions?

2010-04-20 Thread dj
Hey Stephen, Ok so I get that sessions shouldn't be supported by rest, totally fine with that. I'm confused about how to use basic auth then instead, if that's the preferred method. If we use basic auth, then we need to send the username and password as plain text, right? This could be fixed

Serving GWT app from different urls?

2010-04-06 Thread dj
Hi, I'm using GWT and app engine. I setup an Application-derived class to do the url routing, works great. Is it possible though to serve my gwt app at these different urls though? For instance, I will have my landing page: www.mysite.com and user pages: www.mysite.com/johndoe it's not

A POST request with query parameters?

2010-03-16 Thread dj
Hi, I just was shown how to get the parameters of a GET request using the following: Form queryParams = getReference().getQu​eryAsForm(); String size = queryParams.getFirst​Value(size​); this works perfectly. I'm constructing a POST on a java client like this: HttpPost httppost = new

RE: Re: A GET with query parameters?

2010-03-16 Thread dj
Ok thanks, yeah was missing that you could do that at all, works well now. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2460202

A GET with query parameters?

2010-03-15 Thread dj
Hi, I'm using restlet with google app engine, but think this is just a general restlet question. I want to support a GET method where the user can supply some query parameters like: http://mysite.com/farms/size=n so the user can do a GET on the farms list but only return a list of farms