根据策略配置Acegi的拦截过滤器。
Configuring Acegi's interceptor filter according to the policy.
Acegi的拦截过滤器用于做出授权决策。
Acegi's interceptor filters are used to make authorization decisions.
完成这一点可以简单到在我们的拦截过滤器中放一个IF语句。
Accomplishing it is as simple as throwing an IF statement inside of our intercepting filter.
这个类的唯一目的就是作为应用代表各个活动的拦截过滤器链的目标类。
The only purpose for this class is to serve as a target class to apply intercepting filter chain representing individual activities.
当身份验证过滤器完成其处理时,这些过滤器将把请求和响应对象发送到应用程序中配置的拦截过滤器。
When authentication filters have finished processing, they pass request and response objects to the interceptor filter configured in your application.
不幸的是SpringAOP不能帮上忙,因为它是基于代理的,因此我们的拦截过滤器已经是代理基础架构的一部分了,我们不能代理这个代理(proxythe proxy)。
Spring AOP unfortunately can't help us here simply because it is proxy-based and since our intercepting filters are already a part of a proxy infrastructure we simply cannot proxy the proxy.
唯一要告诫的是我们的目标类本身恰恰就是拦截过滤器。
The only caveat is that our target class happened to be intercepting filter itself.
每当我们调用一个目标对象(流程)时,拦截过滤器将一个接一个的被代理机制所调用。
The Intercepting filters will be invoked one after another by the proxy mechanism, every time we invoke target object(process).
它将使我们能够定义一个有序拦截过滤器集合,来代表一个给定流程的各个活动。
It will allow us to define an ordered collection of intercepting filters that represent the Activities of a given process.
拦截过滤器模式用一个过滤器封装了已有应用资源,这个过滤器拦截了请求的接收及响应的传递。
The Intercepting filter pattern wraps existing application resources with a filter that intercepts the reception of a request and the transmission of a response.
下一节将说明如何在文件中定义任意数量的用户及其用户角色,然后配置拦截过滤器以使用这些文件。
The next section explains how you can define any number of users and their roles in a file and then configure an Acegi Interceptor filter to use the file.
第一层是用SpringAOP实现的,将流程装配为拦截过滤器链,其中每个过滤器都被注入了相应活动。
The first layer is implemented using Spring AOP and assembles the process as the chain of intercepting filters, where each filter is injected with individual activity.
动态的:过滤器在运行时由Servlet容器调用来拦截和处理请求和响应。
Dynamic: At runtime, filters are invoked by the Servlet container to intercept and process requests and responses.
通过拦截过滤器链来代理我们的流程,将使我们能够定义和维护流程的流向。
Proxying our process through the chain of intercepting filters allows us to define and maintain direction of the process.
Servlet过滤器是小型的Web组件,它们拦截请求和响应,以便查看、提取或以某种方式操作正在客户机和服务器之间交换的数据。
Servlet filters are small Web components that intercept requests and responses to view, extract, or in some way manipulate the data that is being exchanged between client and server.
他回顾了如何利用EJB3拦截器、Servlet过滤器拦截器、EJB客户端拦截器和内容传递,以及Spring拦截器来捕获应用的性能指标。
He reviews how to use the EJB3 interceptors, servlet filter interceptors, EJB client-side interceptors and context passing, and Spring interceptors to capture application performance metrics.
授权实施模块采用过滤器的方式拦截用户的资源请求并发送到授权决策服务器进行决策。
The implementation module USES filters to intercept the user's requests and sends them to the authorization module.
授权实施模块采用过滤器的方式拦截用户的资源请求并发送到授权决策服务器进行决策。
The implementation module USES filters to intercept the user's requests and sends them to the authorization module.
应用推荐