@ChannelHandler.Sharable
public class InvokerService.InvokerServerHttpHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
| Modifier and Type | Field and Description |
|---|---|
InvokerService.InvokerInfoBuffer |
defaultBuffer
The default buffer.
|
static String |
MAIN_PREFIX
The main uri prefix.
|
InvokerService.InvokerInfoBuffer |
mainHtmlBuffer
The default buffer.
|
static String |
METHOD_PREFIX
The method uri prefix.
|
static String |
RUN_PREFIX
The run uri prefix.
|
static String |
VALUE_PREFIX
The values uri prefix.
|
| Constructor and Description |
|---|
InvokerServerHttpHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest request) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
InvokerService.InvokerInfoBuffer |
processRequest(io.netty.handler.codec.http.FullHttpRequest request)
Process the given URI and return the info buffer for its response.
|
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredhandlerAdded, handlerRemoved, isSharablepublic static final String VALUE_PREFIX
public static final String METHOD_PREFIX
public static final String RUN_PREFIX
public static final String MAIN_PREFIX
public final InvokerService.InvokerInfoBuffer defaultBuffer
public final InvokerService.InvokerInfoBuffer mainHtmlBuffer
public InvokerService.InvokerInfoBuffer processRequest(io.netty.handler.codec.http.FullHttpRequest request) throws IOException
request - the http requestIOException - if decoding failspublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterExceptionCopyright © 2016. All rights reserved.