java吧 关注:1,275,522贴子:12,790,287
  • 10回复贴,共1
Among the types of functionality available to the developer needing to use filters are the following:
■ The accessing of a resource before a request to it is invoked.
■ The processing of the request for a resource before it is invoked.
■ The modification of request headers and data by wrapping the request in customized versions of the request object.
■ The modification of response headers and response data by providing customized versions of the response object.
■ The interception of an invocation of a resource after its call.
■ Actions on a servlet, on groups of servlets, or static content by zero, one, or more filters in a specifiable order.
仅翻译如下两句即可
■ The accessing of a resource before a request to it is invoked.
■ The processing of the request for a resource before it is invoked.


1楼2012-11-22 14:44回复

    @那十无忧


    IP属地:江苏2楼2012-11-22 14:47
    回复
      2025-08-25 22:00:11
      广告
      不感兴趣
      开通SVIP免广告
      @ hong25100


      IP属地:江苏3楼2012-11-22 14:48
      收起回复
        * 在執行請求之前 存取(讀取)要作為請求對像的資源。
        * 在執行請求之前 代替對像去處理請求。


        4楼2012-11-22 14:51
        收起回复
          也就是說,在 request 實際執行之前先攔下,看一看,查一查,做些處理。有需要再把 request 傳下去實作。


          5楼2012-11-22 14:53
          回复