Search in sources :

Example 16 with HttpChunkAggregator

use of org.jboss.netty.handler.codec.http.HttpChunkAggregator in project socket.io-netty by ibdknox.

the class WebSocketServerPipelineFactory method getPipeline.

public ChannelPipeline getPipeline() throws Exception {
    // Create a default pipeline implementation.
    ChannelPipeline pipeline = pipeline();
    pipeline.addLast("decoder", new HttpRequestDecoder());
    pipeline.addLast("aggregator", new HttpChunkAggregator(65536));
    pipeline.addLast("encoder", new HttpResponseEncoder());
    pipeline.addLast("handler", socketHandler);
    return pipeline;
}
Also used : HttpResponseEncoder(org.jboss.netty.handler.codec.http.HttpResponseEncoder) HttpRequestDecoder(org.jboss.netty.handler.codec.http.HttpRequestDecoder) HttpChunkAggregator(org.jboss.netty.handler.codec.http.HttpChunkAggregator) ChannelPipeline(org.jboss.netty.channel.ChannelPipeline)

Aggregations

HttpChunkAggregator (org.jboss.netty.handler.codec.http.HttpChunkAggregator)16 ChannelPipeline (org.jboss.netty.channel.ChannelPipeline)15 HttpResponseEncoder (org.jboss.netty.handler.codec.http.HttpResponseEncoder)15 HttpRequestDecoder (org.jboss.netty.handler.codec.http.HttpRequestDecoder)14 HttpContentCompressor (org.jboss.netty.handler.codec.http.HttpContentCompressor)6 ChannelPipelineFactory (org.jboss.netty.channel.ChannelPipelineFactory)4 InetSocketAddress (java.net.InetSocketAddress)3 ServerBootstrap (org.jboss.netty.bootstrap.ServerBootstrap)3 NioServerSocketChannelFactory (org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory)3 SslHandler (org.jboss.netty.handler.ssl.SslHandler)3 JmxReporter (com.codahale.metrics.JmxReporter)2 ChannelHandler (org.jboss.netty.channel.ChannelHandler)2 HttpContentDecompressor (org.jboss.netty.handler.codec.http.HttpContentDecompressor)2 Logger (ch.qos.logback.classic.Logger)1 LoggerContext (ch.qos.logback.classic.LoggerContext)1 PatternLayoutEncoder (ch.qos.logback.classic.encoder.PatternLayoutEncoder)1 ILoggingEvent (ch.qos.logback.classic.spi.ILoggingEvent)1 ConsoleAppender (ch.qos.logback.core.ConsoleAppender)1 BroadcastSession (com.cgbystrom.sockjs.test.BroadcastSession)1 SslConfiguration (com.cloudhopper.smpp.ssl.SslConfiguration)1