Hi Gabriel, On Oct 20, 2008, at 7:19 AM, Gabriel Falkenberg wrote:
I wonder if there is a special way to add guards/filters to a Restlet application when using the Spring extension. My application does not seem to have a separate Application class, only a SpringRouter. Is an Application class required for this?
An Application instance is not strictly required. If you want to have the Guard apply to your entire application, make it the root restlet, with the Router as the the next restlet from the Guard.
I've found, though, that in later milestones of Restlet 1.1, more code assumes that it is operating in a context where an application is available, so it might be safer just to create an Application.
Rhett

