Class AccessLogHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
tech.riemann.nif.support.tiangong.connector.AccessLogHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler
public class AccessLogHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.netty.util.AttributeKey<String> static final io.netty.util.AttributeKey<String> static final io.netty.util.AttributeKey<String> static final io.netty.util.AttributeKey<String> static final io.netty.util.AttributeKey<String> static final io.netty.util.AttributeKey<Long> static final io.netty.util.AttributeKey<String> static final io.netty.util.AttributeKey<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) static voidlogResponse(io.netty.channel.ChannelHandlerContext ctx, int status, long writtenBytes) Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
START_TIME_KEY
-
REMOTE_ADDR_KEY
-
METHOD_KEY
-
URI_KEY
-
PROTOCOL_KEY
-
USER_AGENT_KEY
-
REFERER_KEY
-
HOST_KEY
-
-
Constructor Details
-
AccessLogHandler
public AccessLogHandler()
-
-
Method Details
-
channelRead
-
logResponse
public static void logResponse(io.netty.channel.ChannelHandlerContext ctx, int status, long writtenBytes)
-