Example usage for io.netty.handler.codec.spdy SpdyHttpResponseStreamIdHandler SpdyHttpResponseStreamIdHandler

List of usage examples for io.netty.handler.codec.spdy SpdyHttpResponseStreamIdHandler SpdyHttpResponseStreamIdHandler

Introduction

In this page you can find the example usage for io.netty.handler.codec.spdy SpdyHttpResponseStreamIdHandler SpdyHttpResponseStreamIdHandler.

Prototype

SpdyHttpResponseStreamIdHandler

Source Link

Usage

From source file:com.flysoloing.learning.network.netty.spdy.server.SpdyOrHttpHandler.java

License:Apache License

private static void configureSpdy(ChannelHandlerContext ctx, SpdyVersion version) throws Exception {
    ChannelPipeline p = ctx.pipeline();//from ww  w .  j  a v  a2  s.  co m
    p.addLast(new SpdyFrameCodec(version));
    p.addLast(new SpdySessionHandler(version, true));
    p.addLast(new SpdyHttpEncoder(version));
    p.addLast(new SpdyHttpDecoder(version, MAX_CONTENT_LENGTH));
    p.addLast(new SpdyHttpResponseStreamIdHandler());
    p.addLast(new SpdyServerHandler());
}

From source file:org.pidome.server.system.network.http.HttpProtocolNegotiator.java

/**
 * Configures the channel to use spdy./*ww w . ja v  a 2 s.  c  om*/
 * @param ctx The channel handler.
 * @param version The spdy version.
 * @param port The port used.
 * @throws Exception When the channel can not be configured.
 */
private static void configureSpdy(ChannelHandlerContext ctx, SpdyVersion version, int port) throws Exception {
    ctx.pipeline().addLast(new SpdyFrameCodec(version)).addLast(new SpdySessionHandler(version, true))
            .addLast(new SpdyHttpEncoder(version)).addLast(new SpdyHttpDecoder(version, 5242880))
            .addLast(new SpdyHttpResponseStreamIdHandler()).addLast(new HttpClientHandler(true, port))
            .addLast(new UserEventLogger());
}