How undertow-io/undertow works
Main Components Identification
The system should be divided into three main components as indicated in the README and file structure:
• Core HTTP Server (non-blocking IO)
• Servlet Implementation
• WebSocket Implementation
Detailed Architecture Breakdown
a. Core Layer:
• Following sub-components:
• Protocol handlers (HTTP/1.1, HTTP/2, AJP)
• Channel management
• Buffer pools
• Connection handling
b. Protocol Layer:
• Above the core layer
• Separate sections for:
• HTTP/1.1 implementation
• HTTP/2 implementation
• AJP protocol support
• WebSocket protocols
c. Handler Layer:
• Above the protocol layer
• Components for:
• Routing handlers
• Security handlers
• Session management
• Resource handlers
• Predicate handlers
d. Integration Layer:
• At the top
• Integration points for:
• Servlet container
• WebSocket endpoints
• External applications
Connection Flow Representation
• Incoming client requests
• Request processing flow through layers
• Response generation and return path
• WebSocket upgrade paths
Additional Details
Annotations for:
• Supported protocols (HTTP/1.1, HTTP/2, WebSocket, AJP)
• Servlet specification versions (4.0/5.0/6.0)
• WebSocket specification compliance (JSR-356/Jakarta 2.0)