I guess there's no reason we couldn't expose the HttpContext as an OSGi
service, but it seems odd that this would be necessary. It isn't with
Felix's HttpService implementation - the default HttpContext is used and
the filter is still invoked.

Are you binding by pattern or servlet name?

Justin


On 9/29/10 4:00 PM, Ian Boston wrote:
> Hi,
> Is it possible to register a filter before the SlingMainServlet ?
> 
> I can register a filter via the extended http service (PAX Web WebContainer 
> in my case) but I cant get the filter to bind to the SlingMainServlet, IIUC 
> because I cant get hold SlingMainServlets HttpContext.
> 
> For background
> There are 2 filters I want to register. A caching filter and a GZip filter.
> 
> Ian
> 

Reply via email to