简体   繁体   English

Infinispan拦截器配置?

[英]Infinispan Interceptor Configuration?

In infinispan server 6.0.0.CR1 if i want to add some filters or interceptors where should i add them and is there a better documentation that can guide me through. 在infinispan服务器6.0.0.CR1中,如果我想添加一些过滤器或拦截器,应该在哪里添加它们,并且有更好的文档可以指导我进行操作。 I basically want to intercept the REST call to grab the application ID and add some restriction's while accessing the named caches. 我基本上想拦截REST调用以获取应用程序ID并在访问命名缓存时添加一些限制。

Custom Interceptors section in the UserGuide make more sense for Embedded Cache but with cache server how cani configure the interceptors? UserGuide中的“自定义拦截器”部分对嵌入式缓存更有意义,但是对于缓存服务器,如何配置拦截器?

You cannot deploy user code to Infinispan server, which is why neither interceptors nor listeners can be plugged into remote caches currently. 您无法将用户代码部署到Infinispan服务器,这就是为什么目前无法将侦听器和侦听器插入远程缓存的原因。 If you have a web proxy, you could maybe do the restrictions there. 如果您有Web代理,则可以在那里进行限制。

As Galder said, the server configuration does not allow for easily inserting a custom interceptor in the chain. 正如Galder所说,服务器配置不允许在链中轻松插入自定义拦截器。 We have plans on how to allow this in an easy, deployable fashion, but until then this requires patching the infinispan subsystem. 我们已经计划了如何以一种简单,可部署的方式允许这样做,但是在此之前,这需要修补infinispan子系统。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM