2015-03-27 16:09 GMT+03:00 jieryn <jie...@gmail.com>:
> Hello Apache Tomcat,
>
> Is there any hope to have Tomcat package the very useful
> ServletFilter's it has created ( src=java/org/apache/catalina/filters,
> web=https://tomcat.apache.org/tomcat-8.0-doc/config/filter.html ) into
> its own Apache Maven module? I see we have a lot of deployed modules
> already, but these filters are quite useful even if the final
> container is not Apache Tomcat!
>
> It would be nice to decouple them, and I think valuable to users at large.


The filters depend on Tomcat support classes, you cannot separate all
of them from Tomcat.

Looking into Tomcat 8 filter classes:

import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
import org.apache.tomcat.util.IntrospectionUtils;
import org.apache.tomcat.util.res.StringManager;
import org.apache.catalina.Globals;
import org.apache.catalina.comet.CometEvent;
import org.apache.catalina.comet.CometFilter;
import org.apache.catalina.comet.CometFilterChain;
import org.apache.catalina.AccessLog;

1) Some filters have alternatives elsewhere.
E.g. SetCharacterEncodingFilter has similar filter in Spring Framework.

2) The license allows you to copy the code into your own project
(provided that you follow the conditions set there).

3) There have been an effort to create some Tomcat-independent
components - "tomcat/tc8.0.x/trunk/modules/tomcat-lite/" branch in SVN
repository,  but it is rather stalled due to lack of attention  and is
removed from the current trunk.


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to