Interface | Description |
---|---|
HandlerFactory |
Handler Factory is responsible for creating handler object based on path info.
The handler owns the logic to process request.
|
RequestHandler |
The interface of HTTP request handlers.
Each supported end point in the server needs to implement this handler.
NOTE: methods in this interface are executed in I/O thread so it has to be
fully asynchronous or finished very quickly.
|
Class | Description |
---|---|
GlobalHandler |
Global handler handles all HTTP requests received by the server.
It routes incoming HTTP request to appropriate handler based on request path.
GlobalHandler is designed to handle *stateless* HTTP requests so a single instance can be shared in
ChannelPipeline .
Full HTTP response may have following error codes:
200 if it processed request successfully.
204 if request has no content.
400 if there is a IllegalArgumentException .
500 if there is an internal error. |
Copyright © 2017. All rights reserved.