Play Netty LT
- 7. Play! in Tokyo#2 Netty
UpStream( )/DownStream( )
Handler
ChannelPipeline Handler
COPYRIGHT 2011 PLUGRAM, INC.
2011 10 8
- 14. Play! in Tokyo#2 Netty
// allow-access-from domain=”*” to-ports=”*”
pipeline.addLast(
"flashPolicy", new FlashPolicyHandler());
// Netty API
pipeline.addLast(
"decoder", new HttpRequestDecoder());
// Long Polling (Streaming)
pipeline.addLast(
"aggregator", new StreamChunkAggregator(max));
// Netty API
pipeline.addLast(
"encoder", new HttpResponseEncoder());
// Netty API(Streaming )
pipeline.addLast(
"chunkedWriter", playHandler.chunkedWriteHandler);
// HTTP WebSocket
pipeline.addLast(
"handler", playHandler);
COPYRIGHT 2011 PLUGRAM, INC.
2011 10 8