Custom gaurds

2007-08-27 Thread Alan
hello, I'd like to write a custom gaurd that can, in addition to using standard authentication mechanisms, look for credentials in a request, for example in a query string (if the client wishes) or url encoded post data. Is there some way to obtain these credentials as a Form and still have the

Re: Problem building Restlet source

2007-08-27 Thread Thierry Boileau
Hello, Thanks Sean and Alex for reporting and contributing. I've integrated the patch and fixed another compilation pb with the wadl extension. After some tests, the entire build script seems ok. best regards, Thierry Boileau Alex, Thanks for the patch. Unfortunately the build appears to

Re: Custom gaurds

2007-08-27 Thread Stanczak Group
I won't be much help, but have you checked the Request.isEntityAvailable() ? I found that using Request.getEntityAsFoo() doesn't always mean there's nothing there. Sorry I don't have more, I'm still learning it my self. Alan wrote: hello, I'd like to write a custom gaurd that can, in

Re: Custom gaurds

2007-08-27 Thread Thierry Boileau
Hi, This limitation concerns the following representation classes (and descendants included in the Restlet API and NRE) : - InputRepresentation - ReadableRepresentation - ReaderRepresentation Some representations can be retrieved several times if their source is stable and accessible, like a

Re: Custom gaurds

2007-08-27 Thread Thierry Boileau
Hi Rob, In theory, we can imagine kind of representations successively available/unavailable which fits the javadoc comment of the available attribute (Indicates if some *fresh* content is available) Therefore, I'm disposed to think that the transient attribute indicates whether the

Sending a resource URI as a form parameter

2007-08-27 Thread Vincent
Hello, Here is what I'm trying to do: POST /colorMixer form: color1=http://www.colors.com/color/blue color2=http://www.colors.com/color/red A successful call will return 201 CREATED http://www.colors.com/clor/purple My question is how do I implement the ColorMixerResource.post(Representation)