websphere 自由配置文件中是否有等效的 tomcat 阀门概念?

is there a equivalent tomcat valves concept in websphere liberty profile?

我有一个部署在 tomcat 上并使用 tomcat 值的网络应用程序,现在该应用程序正在迁移到 websphere liberty,我不确定 liberty 中是否存在类似的概念。 websphere libery 配置文件中是否有等效的 tomcat 阀门概念?如果是,我们如何实现?

您可以 white/blacklist 在 server.xml 中基于每个端点的主机名和 IP 地址。被阻止的将收到连接重置消息。

<httpEndpoint httpPort="19080" httpsPort="19443" id="defaultHttpEndpoint" tcpOptionsRef="myTcpOptions" host="*"/> <tcpOptions id="myTcpOptions" hostNameExcludeList="*.foo.com,*.ibm.com" />

这里有更多相关信息:
https://www.ibm.com/support/knowledgecenter/en/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/urun_chain_typetcp.html

如果每个应用需要不同的排除项,您可以使用配置多个端点并将它们映射到使用虚拟主机的应用程序。 https://www.ibm.com/support/knowledgecenter/en/SSEQTP_8.5.5/com.ibm.websphere.wlp.doc/ae/cwlp_virtual_hosts.html