OpenAM 的默认 web.xml 配置提供了一个过滤器映射,其中包括站点内的所有 URI:
<filter>
<filter-name>Agent</filter-name>
<display-name>Agent</display-name>
<description>SJS Access Manager Tomcat Policy Agent Filter</description>
<filter-class>com.sun.identity.agents.filter.AmAgentFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>Agent</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
如何防止一个或多个特定 URI 与此过滤器一起使用?我想避免将 Filter 类扩展为接受初始化参数的类。