NOTE

11.4 Connector

Tomcat Connector accepts network requests and passes them to the adapter and container. These notes examine its structure through Boss/Worker responsibilities.

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