public class NettyHttpServerHandler<IN,OUT> extends NettyChannelHandlerBridge<IN,OUT>
NettyHttpChannel
and Buffer
).NettyChannelHandlerBridge.ChannelInputSubscriberEvent<IN>
Modifier and Type | Field and Description |
---|---|
protected NettyHttpChannel<IN,OUT> |
request |
CHANNEL_REF, channelStream, channelSubscription, handler, log
Constructor and Description |
---|
NettyHttpServerHandler(ReactorChannelHandler<IN,OUT,ChannelStream<IN,OUT>> handler,
NettyChannelStream<IN,OUT> tcpStream) |
Modifier and Type | Method and Description |
---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
protected void |
doOnSubscribe(io.netty.channel.ChannelHandlerContext ctx,
org.reactivestreams.Subscription s) |
protected io.netty.channel.ChannelFuture |
doOnWrite(Object data,
io.netty.channel.ChannelHandlerContext ctx) |
protected void |
postRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
protected void |
writeLast(io.netty.channel.ChannelHandlerContext ctx) |
channelInactive, channelReadComplete, convertBufferToByteBuff, doOnTerminate, doRead, exceptionCaught, getChannelStream, getHandler, subscription, userEventTriggered, write
bind, close, connect, deregister, disconnect, flush, read
channelRegistered, channelUnregistered, channelWritabilityChanged
handlerAdded, handlerRemoved, isSharable
protected NettyHttpChannel<IN,OUT> request
public NettyHttpServerHandler(ReactorChannelHandler<IN,OUT,ChannelStream<IN,OUT>> handler, NettyChannelStream<IN,OUT> tcpStream)
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelActive
in interface io.netty.channel.ChannelInboundHandler
channelActive
in class NettyChannelHandlerBridge<IN,OUT>
Exception
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception
channelRead
in interface io.netty.channel.ChannelInboundHandler
channelRead
in class NettyChannelHandlerBridge<IN,OUT>
Exception
protected void postRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)
protected void writeLast(io.netty.channel.ChannelHandlerContext ctx)
protected io.netty.channel.ChannelFuture doOnWrite(Object data, io.netty.channel.ChannelHandlerContext ctx)
doOnWrite
in class NettyChannelHandlerBridge<IN,OUT>
protected void doOnSubscribe(io.netty.channel.ChannelHandlerContext ctx, org.reactivestreams.Subscription s)
doOnSubscribe
in class NettyChannelHandlerBridge<IN,OUT>
Copyright © 2016. All rights reserved.