public class RestVersionHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
Modifier and Type | Field and Description |
---|---|
static String |
HANDLER_NAME
Name of this handler in the Netty pipeline.
|
Constructor and Description |
---|
RestVersionHandler(RestConfiguration restConfiguration)
Initializes the REST version splitter and handler with the given
RestConfiguration |
Modifier and Type | Method and Description |
---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest request)
Dispatches the incoming request to the corresponding v1 or v2 REST
handler.
|
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public static final String HANDLER_NAME
public RestVersionHandler(RestConfiguration restConfiguration)
RestConfiguration
restConfiguration
- the RestConfiguration objectprotected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.FullHttpRequest request)
channelRead0
in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
ctx
- the Netty pipeline contextrequest
- the incoming requestCopyright © 2009–2020 Waarp. All rights reserved.