Re: RedirectServlet and JSON requests

2010-01-26 Thread Alexander Klimetschek
On Tue, Jan 26, 2010 at 12:30, Felix Meschberger wrote: > How about converting the RedirectServlet into a OptingServlet and > implement the accepts mehtod as follows: > >    public boolean accepts(SlingHttpServletRequest request) { >        return !JsonRendererServlet.EXT_JSON.equals( >          

RedirectServlet and JSON requests

2010-01-26 Thread Felix Meschberger
Hi all, Currently, the RedirectServlet (in the Sling Default GET Servlets bundle) has special provision to return the current resource as JSON according to the JsonRendererServlet. As such it has the following code in the doGet method: // handle json export of the redirect node if