You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by jieryn <ji...@gmail.com> on 2015/03/27 14:09:03 UTC
Container Provided ServletFilters
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.
Thank you!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Container Provided ServletFilters
Posted by Mark Thomas <ma...@apache.org>.
On 27/03/2015 13:09, jieryn wrote:
> 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.
That seems like a reasonable request. I recommend opening a Bugzilla
enhancement request to ensure that it doesn't get lost.
If you wanted to provide a patch as well...
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Container Provided ServletFilters
Posted by Konstantin Kolinko <kn...@gmail.com>.
2015-03-27 16:09 GMT+03:00 jieryn <ji...@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org