> Steinar Bang :
> I guess one way to do this would be to create a @Component that
> implements the Filter interface and wraps a ShiroFilter. Ie. it creates
> a ShiroFilter instance and calls init(FilterConfig) on the ShiroFilter
> and then does its own thing.
> It should work... but it feel
> Steinar Bang :
[snip!]
> Is there any guarantee that activate() won't be called until after
> init(FilterConfig) has been called?
Nope. When activate() was called, getFilterConfig() returned null:
@Activate
public void activate() {
WebEnvironment env =
WebUtils.getRequiredW
> Steinar Bang :
> Does anyone have a code example for how to get the ServletContext in a
> filter?
> I tried adding a @Reference for javax.servlet.ServletContext in a DS
> component, but that @Reference never received a service injection.
I've found this
http://blog.vogella.com/2017/04/20/
Does anyone have a code example for how to get the ServletContext in a
filter?
I tried adding a @Reference for javax.servlet.ServletContext in a DS
component, but that @Reference never received a service injection.
--
--
--
OPS4J - http://www.ops4j.org - ops4j@googlegroups.com