public abstract class JobServerHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
protected JobServer |
server |
| Constructor and Description |
|---|
JobServerHandler(JobServer server) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest msg) |
protected void |
dumpLog(JobMessage jm) |
protected abstract JobMessage |
handle(JobMessage request) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableprotected static final org.slf4j.Logger logger
protected final JobServer server
public JobServerHandler(JobServer server)
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest msg)
throws Exception
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>Exceptionprotected void dumpLog(JobMessage jm)
protected abstract JobMessage handle(JobMessage request)
Copyright © 2020. All rights reserved.