NOTE

11.4 Connector

概述 -- - 连接器采用的是boss/worker的设计模式和adapter模式 - 有endpoint负责处接受tcp/ip请求--boss - 有processor负责将tcp/ip请求转成http请求--worker - Adapter负责将request/response转换成servle

Java创建于 更新于 约 1 分钟读完historical

这是历史学习笔记,可能存在过时或不完整的理解。

概述

  • 连接器采用的是boss/worker的设计模式和adapter模式

  • 有endpoint负责处接受tcp/ip请求–boss

  • 有processor负责将tcp/ip请求转成http请求–worker

  • Adapter负责将request/response转换成servletRequest/servletResponse

类图

  • ProtocolHandler
  • EndPoint
  • Processor
  • Adapter

讨论

使用 GitHub 账号参与讨论,评论会保存在 GitHub Issues 中。在 GitHub 查看