与Client authentication中的做法最大的不同就在于给HttpClient设置了一个请求拦截器(Request Interceptor),当Http请求即将被执行的时候,如果发现AuthScheme为null就尝试初始化。
基于22个网页-相关网页
interceptor in request level 请求级截获器
For application monitoring, a Portable Request Interceptor is created to marshal and then disengage with the correlator during distributed transactions.
为了进行应用程序监控,首先要创建一个Portable Request Interceptor,然后在分布式事务运行期间它与correlator脱离。
When authentication filters have finished processing, they pass request and response objects to the interceptor filter configured in your application.
当身份验证过滤器完成其处理时,这些过滤器将把请求和响应对象发送到应用程序中配置的拦截过滤器。
Whenever an application tries to access a method of a bean secured using Acegi security System, the request is automatically transferred to Acegi's method security interceptor.
只要应用程序试图访问由acegi安全系统保护的bean方法,请求将被自动传递到Acegi的方法安全性拦截器。
应用推荐