zoukankan      html  css  js  c++  java
  • 随想 201800609

    WebApplication:

    1.  Browser UI: ajax request, http request, location, document, window, js, DOM tree

    2.  Servlet Container:  

    2.1 accept http request

    2.2 wrappe to HttpServletRequest and back to client with HttpServletResponse

    2.3 find the proper servlet to handle the request and back to user with reponse

    2.4 filter is able to make changes on request or redirect to other server, for pre-process for request

    2.4.1 

    Filter有如下几个用处。

      • 在HttpServletRequest到达Servlet之前,拦截客户的HttpServletRequest。
      • 根据需要检查HttpServletRequest,也可以修改HttpServletRequest头和数据。
      • 在HttpServletResponse到达客户端之前,拦截HttpServletResponse。
      • 根据需要检查HttpServletResponse,也可以修改HttpServletResponse头和数据。
      • 多个匹配的Filter,是按照其在web.xml中配置的顺序来执行的

    Filter有如下几个种类。

      • 用户授权的Filter:Filter负责检查用户请求,根据请求过滤用户非法请求。
      • 日志Filter:详细记录某些特殊的用户请求。
      • 负责解码的Filter:包括对非标准编码的请求解码。
      • 能改变XML内容的XSLT Filter等。
      • Filter可负责拦截多个请求或响应;一个请求或响应也可被多个请求拦截。

    2.3 URL mapping

    2.4. View

    2.4.1 View name

    2.4.2 View Template

    2.4..3 View Resolver

    2.4.4 View controller

    2.4.5 View Router

    2.5 Interception

    2.6 Filter

    2.7 URL mapping Handler -->Controller

    下图中 BaseInterceptor::preHandler & TestInterceptor::preHandler 应该在DispatcherServlet 之后

     

    https://www.cnblogs.com/doit8791/p/4209442.html

    https://blog.csdn.net/king_is_everyone/article/details/53116744

  • 相关阅读:
    extjs4 tree 父子节点联级勾选,半选节点半透明处理
    回调函数设计及应用(Java)——分组模式设计
    未来发展方向
    博客园网摘chrome插件源码分析
    apue2 阅读笔记第11章
    apue2 阅读笔记第八章
    APUE阅读笔记第十五章(第一部分)
    一个常用的vimrc
    apue2 阅读笔记第12章
    APUE阅读笔记第十四章(第二部分)
  • 原文地址:https://www.cnblogs.com/iiiDragon/p/9159743.html
Copyright © 2011-2022 走看看