On Wed, Apr 2, 2008 at 9:01 AM, Vidar Ramdal <[EMAIL PROTECTED]> wrote:
> On Tue, Apr 1, 2008 at 9:23 PM, Felix Meschberger <[EMAIL PROTECTED]> wrote: > > If you can come up with a good solution to this problem (maybe an API > > call such as > > > > boolean canHandle(SlingHttpServletRequest) > > > > in an interface, which a servlet may implement. If a servlet would be > > selected which implements the method and returns false, the servlet > > would be ignored for the resolution and the resolution process would > > continue as if the servlet would not exist. > > > > (yes, we discussed this already, but never got around to doing it. You > > are of course welcome to provide something like that...) > > :) OK, I'll see what I can come up with. Created https://issues.apache.org/jira/browse/SLING-352 for this, and created a patch (hey, I even wrote a testcase:). Please take a look at it and see if it's usable. This, of course, would be obsolete if Bertrand's solution would somehow appear in the codebase. -- Vidar S. Ramdal <[EMAIL PROTECTED]> - http://www.idium.no Akersgata 16, N-0158 Oslo, Norway
