Class HttpRequestIdHandler
- java.lang.Object
- 
- io.netty.channel.ChannelHandlerAdapter
- 
- io.netty.channel.ChannelInboundHandlerAdapter
- 
- io.netty.channel.ChannelDuplexHandler
- 
- org.apache.tinkerpop.gremlin.server.handler.HttpRequestIdHandler
 
 
 
 
- 
- All Implemented Interfaces:
- io.netty.channel.ChannelHandler,- io.netty.channel.ChannelInboundHandler,- io.netty.channel.ChannelOutboundHandler
 
 @Sharable public class HttpRequestIdHandler extends io.netty.channel.ChannelDuplexHandlerA handler that generates a Request ID for the incoming HTTP request and injects the same ID into the response header.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringREQUEST_ID_HEADER_NAME
 - 
Constructor SummaryConstructors Constructor Description HttpRequestIdHandler()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)voidwrite(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise)- 
Methods inherited from class io.netty.channel.ChannelDuplexHandlerbind, close, connect, deregister, disconnect, flush, read
 - 
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapterchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
 - 
Methods inherited from class io.netty.channel.ChannelHandlerAdapterensureNotSharable, handlerAdded, handlerRemoved, isSharable
 
- 
 
- 
- 
- 
Field Detail- 
REQUEST_ID_HEADER_NAMEpublic static String REQUEST_ID_HEADER_NAME 
 
- 
 - 
Method Detail- 
channelReadpublic void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception- Specified by:
- channelReadin interface- io.netty.channel.ChannelInboundHandler
- Overrides:
- channelReadin class- io.netty.channel.ChannelInboundHandlerAdapter
- Throws:
- Exception
 
 - 
exceptionCaughtpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception- Specified by:
- exceptionCaughtin interface- io.netty.channel.ChannelHandler
- Specified by:
- exceptionCaughtin interface- io.netty.channel.ChannelInboundHandler
- Overrides:
- exceptionCaughtin class- io.netty.channel.ChannelInboundHandlerAdapter
- Throws:
- Exception
 
 
- 
 
-