Hi,

I'm trying to integrate a 3rd party filter into a Shiro filter chain.
I'm surprised by two things and I hope I'm just missing something.

1) The init() method of a filter configured in a chain never seems to be called. 2) If the init() method was called it seems like you can't set filter init-params via the typical JEE filter mechanism.

For the example below the init method of TestFilter is never called and even if it were I'm not sure the filter could use
filterConfig.getInitParameter( "testParam" )
to retrieve the test-value.

[main]
test-filter = test.TestFilter
test-file.testParam = test-value

[urls]
/** = test-filter

Is this a bug, feature or user error?
I do understand that the pseudo-DI in Shiro in most cases is probably nicer but:

A) If the javax.servlet.Filter is being used the contract associated with that interface should be honored. B) Not support init() or init-params really limits the ability to use "off the shelf" filters.

Hoping I'm wrong...
Kevin.

--
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.

Reply via email to