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 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
entity be available to those resources protected by the guard? Because accessing
the entity as a form within the guard causes the entity to not be available (at
least through the Request.getEntityAsFoo) further down the chain. I imagine this would apply to filters in general. Do I need to pack that state away somewhere myself?
Hopefully the question is clear, I'm still wrapping my head around the restlet
API (as well as REST) so it may not be.
thanks



--
Justin Stanczak
Stanczak Group
812-735-3600

"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke

Reply via email to