什么是Java等同于ASP.NET HTTP模块?

问题描述:

我考虑重写一个小HTTP模块我在ASP.NET在Java中进行。基于特定的URL,HTTP模块插入一个空的HTML布局一些HTML,做一些基本的格式化,最后返回呈现的HTML。

I'm considering rewriting a small Http Module i made in ASP.NET in Java. Based on a specific URL, the Http Module inserts some HTML on an empty HTML layout, do some basic reformatting, and finally returns the rendered HTML.

作为新的Java Web开发,相当于ASP.NET HTTP模块是什么?

Being new to Java web development, what is the equivalent to ASP.NET Http Modules?

HTTP模块在ASP.NET相当于是的过滤器中的Java Servlet API 2.3 +

The equivalent of HTTP Modules in ASP.NET would be Filters in Java Servlet API 2.3+.