List of usage examples for io.netty.channel ChannelHandlerContext read
@Override ChannelHandlerContext read();
From source file:com.couchbase.client.core.endpoint.binary.BinaryAuthHandler.java
License:Open Source License
@Override public void read(ChannelHandlerContext ctx) throws Exception { ctx.read(); }
From source file:com.google.devtools.build.lib.remote.blobstore.http.AbstractHttpHandler.java
License:Open Source License
@SuppressWarnings("FutureReturnValueIgnored") @Override public void read(ChannelHandlerContext ctx) { ctx.read(); }
From source file:com.gxkj.demo.netty.proxy.HexDumpProxyBackendHandler.java
License:Apache License
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { ctx.read(); ctx.write(Unpooled.EMPTY_BUFFER); }
From source file:com.jt.flash.proxy.handler.ProxyBackendHandler.java
License:Apache License
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { ctx.read(); }
From source file:com.netty.grpc.proxy.demo.handler.GrpcProxyBackendHandler.java
License:Apache License
@Override public void channelActive(ChannelHandlerContext ctx) { // /*from w w w. ja va 2 s . c o m*/ Http2Settings settings = new Http2Settings(); settings.initialWindowSize(DEFAULT_FLOW_CONTROL_WINDOW); settings.pushEnabled(false); settings.maxConcurrentStreams(0); ByteBuf preface = Http2CodecUtil.connectionPrefaceBuf().retainedDuplicate(); ctx.write(preface); writer.writeSettings(ctx, settings, ctx.newPromise()); writer.writeWindowUpdate(ctx, 0, 983041, ctx.newPromise()); ctx.flush(); ctx.read(); }
From source file:com.sangupta.swift.netty.proxy.ProxyBackendHandler.java
License:Apache License
@Override public void channelActive(ChannelHandlerContext channelHandlerContext) { channelHandlerContext.read(); channelHandlerContext.write(Unpooled.EMPTY_BUFFER); }
From source file:com.springapp.mvc.netty.example.proxy.HexDumpProxyBackendHandler.java
License:Apache License
@Override public void channelActive(ChannelHandlerContext ctx) { ctx.read(); ctx.write(Unpooled.EMPTY_BUFFER); }
From source file:com.xx_dev.apn.proxy.ApnProxyRelayHandler.java
License:Apache License
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { LoggerUtil.debug(logger, ctx.channel().attr(ApnProxyConnectionAttribute.ATTRIBUTE_KEY), tag, "channel active"); if (!ctx.channel().config().getOption(ChannelOption.AUTO_READ)) { ctx.read(); }/*from w w w .j ava2 s.co m*/ }
From source file:com.xx_dev.apn.proxy.ApnProxyRelayHandler.java
License:Apache License
@Override public void channelRead(final ChannelHandlerContext ctx, Object msg) throws Exception { LoggerUtil.debug(logger, ctx.channel().attr(ApnProxyConnectionAttribute.ATTRIBUTE_KEY), tag, msg); if (relayChannel.isActive()) { relayChannel.writeAndFlush(msg).addListener(new ChannelFutureListener() { @Override//from w w w.j ava 2 s . c o m public void operationComplete(ChannelFuture future) throws Exception { if (!ctx.channel().config().getOption(ChannelOption.AUTO_READ)) { ctx.read(); } } }); } else { ReferenceCountUtil.release(msg); } }
From source file:com.xx_dev.apn.proxy.ApnProxyRemoteForwardHandler.java
License:Apache License
@Override public void channelActive(ChannelHandlerContext remoteChannelCtx) throws Exception { LoggerUtil.debug(logger, uaChannel.attr(ApnProxyConnectionAttribute.ATTRIBUTE_KEY), "Remote channel active"); remoteChannelCtx.read(); }