NOTE

11.4 Connector

Overview and class diagrams for Tomcat Connector, Endpoint, Processor, and Adapter.

JavaCreated Updated 1 min readhistorical

This is a historical learning note and may contain outdated or incomplete understanding.

Overview

  • The Connector uses the boss/worker design pattern and the Adapter pattern.

  • Endpoint is responsible for receiving TCP/IP requests – boss.

  • Processor is responsible for converting TCP/IP requests into HTTP requests – worker.

  • Adapter is responsible for converting request/response into servletRequest/servletResponse.

Class Diagram

  • ProtocolHandler

  • EndPoint

  • Processor

  • Adapter

Discussion

Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub