On Tue, Mar 9, 2010 at 10:07 AM, Felix Meschberger <[email protected]> wrote: > Hi, > > On 09.03.2010 09:53, Bertrand Delacretaz wrote: >... >>> interface ResourceDecorator { >>> Resource decorade(Resource) >>> Resource decorade(Resource, HttpServletRequest) >>> } >> >> Why not SlingHttpServletRequest? > > The resolve method is called with a HttpServletRequest because at the > time this method is called, the SlingHttpServletRequest does not exist > yet. [ The resolve method is called to create that object ]
Ok for the resolve() method, but when decorate() is called I assume we do have an SlingHttpServletRequest at the point where decorate(...) is called, or not? (haven't checked exactly where Carsten plans to call decorate() ) -Bertrand
