Example usage for io.netty.channel ChannelPipeline firstContext

List of usage examples for io.netty.channel ChannelPipeline firstContext

Introduction

In this page you can find the example usage for io.netty.channel ChannelPipeline firstContext.

Prototype

ChannelHandlerContext firstContext();

Source Link

Document

Returns the context of the first ChannelHandler in this pipeline.

Usage

From source file:io.liveoak.container.traversal.BaseResponder.java

License:Open Source License

protected void resumeRead() {
    ChannelPipeline pipeline = ctx.pipeline();
    if (pipeline == null) {
        return;//  w w  w.jav  a 2s  .  c om
    }
    ChannelHandlerContext context = pipeline.firstContext();
    if (context == null) {
        return;
    }
    context.read();
}