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

  • 相关阅读:
    SQL Server 造成cpu 使用率高的 6 原因
    SQL Server SQLOS
    flask数据库操作
    redis数据类型
    python3中__get__,__getattr__,__getattribute__的区别
    强弱类型,动静态语言
    函数式编程和面向对象编程
    数据库事务的四个特性和含义
    流畅的python
    Python中__repr__和__str__区别
  • 原文地址:https://www.cnblogs.com/iiiDragon/p/9159743.html
Copyright © 2011-2022 走看看