Grizzly 2.2.10 User's Guide

The Grizzly Team

04/26/2011


Table of Contents

1. Overview of the Grizzly Framework
Goals of the Grizzly Framework
System Requirements
Source code
Where to Get Help
Additional Reading
2. The Core Framework
Memory Management
Overview
MemoryManager
Buffers
I/O Strategies
Transports and Connections
FilterChain and Filters
Core Configuration
Transport Configuration
Thread Pool Configuration
Examples
Best Practices
Quick Start
Server
Client
Samples
Parsing an incoming message
Asynchronous FilterChain execution
Other samples
3. The HTTP Framework
Overview
Components of the Framework
HttpCodecFilter (Server/Client)
HTTP Messages
Transfer Encodings
Content Encodings
HTTP Potpourri
Samples
4. The HTTP Server Framework
Overview
Building a Simple Web Server
Components of the Framework
Quick Start
HTTP Server Configuration
Long-lasting HTTP requests (suspend/response)
NIO Streams
Non-Blocking Writing
Non-Blocking Reading
File Cache
AddOn
Samples
5. The HTTP Server Framework Extras
Multipart (multipart/form-data) HTTP Requests Processing
Dependencies
Sample
6. Comet
Introduction
Long Polling
Streaming
7. WebSockets
What is WebSockets?
Overview of Grizzly's WebSocket Implementation
The Grizzly WebSocket API
WebSocket
WebSocketListener
WebSocketApplication
WebSocketEngine
Using Grizzly 2 WebSockets on the Server-Side
Grizzly WebSockets Client
8. Port Unification
Overview
How it works
Sample
9. AJP
Overview
How it works
10. JAX-WS Web Services
Overview
How it works
JaxwsHandler Configuration
Sample
11. Monitoring
Core Monitoring Artifacts
JMX
JMX Core Monitoring Artifacts
Grizzly HTTP JMX Server Monitoring
12. Dependencies
Core framework
HTTP framework
HTTP Server framework
HTTP Servlet framework
Port unification
Comet
WebSockets
AJP
JAX-WS
13. Samples

List of Figures

2.1. ByteBufferManager UML Diagram
2.2. HeapMemoryManager UML Diagram
2.3. MemoryManager Allocation Request Flow
3.1. HTTP Message Constructions UML Diagram
4.1. Suspend/Resume

List of Tables

2.1. NIOTransportBuilder Properties
2.2. TCPNIOTransportBuilder Properties
2.3. UDPNIOTransportBuilder Properties
2.4. ThreadPoolConfig Properties
3.1. HttpPacket Implementations
3.2. Supported Transfer-Encodings
3.3. Other HTTP Classes of Interest
4.1. HTTP Server Components
4.2. ServerConfiguration Properties
4.3. NetworkListener Properties
4.4. FileCache Configuration Properties
9.1.
10.1. JaxwsHandler constructor parameters
11.1. Core Module Probes
11.2. Http Module Probes
11.3. Http Server Module Probes