{@link ChannelPipeline} p = ...;... p.addLast("encoder", new {@link HttpResponseEncoder}()); p.addLast("decoder", new {@link HttpRequestDecoder}()); p.addLast("aggregator", new {@link HttpObjectAggregator}(1048576)); ... p.addLast("handler", new HttpRequestHandler());Be aware that you need to have the {@link HttpResponseEncoder} or {@link HttpRequestEncoder}before the {@link HttpObjectAggregator} in the {@link ChannelPipeline}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|