Package org.mockserver.logging
Class LoggingHandler
- java.lang.Object
- 
- io.netty.channel.ChannelHandlerAdapter
- 
- io.netty.channel.ChannelInboundHandlerAdapter
- 
- io.netty.channel.ChannelDuplexHandler
- 
- org.mockserver.logging.LoggingHandler
 
 
 
 
- 
- All Implemented Interfaces:
- io.netty.channel.ChannelHandler,- io.netty.channel.ChannelInboundHandler,- io.netty.channel.ChannelOutboundHandler
 
 @Sharable public class LoggingHandler extends io.netty.channel.ChannelDuplexHandler
- 
- 
Field SummaryFields Modifier and Type Field Description protected org.slf4j.Loggerlogger
 - 
Constructor SummaryConstructors Constructor Description LoggingHandler(String loggerName)LoggingHandler(org.slf4j.Logger logger)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLoggingHandler(io.netty.channel.ChannelHandlerContext ctx)voidbind(io.netty.channel.ChannelHandlerContext ctx, SocketAddress localAddress, io.netty.channel.ChannelPromise promise)voidchannelActive(io.netty.channel.ChannelHandlerContext ctx)voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx)voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)voidchannelRegistered(io.netty.channel.ChannelHandlerContext ctx)voidchannelUnregistered(io.netty.channel.ChannelHandlerContext ctx)voidclose(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise)voidconnect(io.netty.channel.ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, io.netty.channel.ChannelPromise promise)voidderegister(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise)voiddisconnect(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise)voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)voidflush(io.netty.channel.ChannelHandlerContext ctx)protected Stringformat(io.netty.channel.ChannelHandlerContext ctx, String message)voiduserEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt)voidwrite(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise)- 
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapterchannelReadComplete, channelWritabilityChanged
 - 
Methods inherited from class io.netty.channel.ChannelHandlerAdapterensureNotSharable, handlerAdded, handlerRemoved, isSharable
 
- 
 
- 
- 
- 
Constructor Detail- 
LoggingHandlerpublic LoggingHandler(String loggerName) 
 - 
LoggingHandlerpublic LoggingHandler(org.slf4j.Logger logger) 
 
- 
 - 
Method Detail- 
addLoggingHandlerpublic void addLoggingHandler(io.netty.channel.ChannelHandlerContext ctx) 
 - 
channelRegisteredpublic void channelRegistered(io.netty.channel.ChannelHandlerContext ctx) throws Exception- Specified by:
- channelRegisteredin interface- io.netty.channel.ChannelInboundHandler
- Overrides:
- channelRegisteredin class- io.netty.channel.ChannelInboundHandlerAdapter
- Throws:
- Exception
 
 - 
channelUnregisteredpublic void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) throws Exception- Specified by:
- channelUnregisteredin interface- io.netty.channel.ChannelInboundHandler
- Overrides:
- channelUnregisteredin class- io.netty.channel.ChannelInboundHandlerAdapter
- Throws:
- Exception
 
 - 
channelActivepublic void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception- Specified by:
- channelActivein interface- io.netty.channel.ChannelInboundHandler
- Overrides:
- channelActivein class- io.netty.channel.ChannelInboundHandlerAdapter
- Throws:
- Exception
 
 - 
channelInactivepublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception- Specified by:
- channelInactivein interface- io.netty.channel.ChannelInboundHandler
- Overrides:
- channelInactivein 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
 
 - 
userEventTriggeredpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception- Specified by:
- userEventTriggeredin interface- io.netty.channel.ChannelInboundHandler
- Overrides:
- userEventTriggeredin class- io.netty.channel.ChannelInboundHandlerAdapter
- Throws:
- Exception
 
 - 
bindpublic void bind(io.netty.channel.ChannelHandlerContext ctx, SocketAddress localAddress, io.netty.channel.ChannelPromise promise) throws Exception- Specified by:
- bindin interface- io.netty.channel.ChannelOutboundHandler
- Overrides:
- bindin class- io.netty.channel.ChannelDuplexHandler
- Throws:
- Exception
 
 - 
connectpublic void connect(io.netty.channel.ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, io.netty.channel.ChannelPromise promise) throws Exception- Specified by:
- connectin interface- io.netty.channel.ChannelOutboundHandler
- Overrides:
- connectin class- io.netty.channel.ChannelDuplexHandler
- Throws:
- Exception
 
 - 
disconnectpublic void disconnect(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise) throws Exception- Specified by:
- disconnectin interface- io.netty.channel.ChannelOutboundHandler
- Overrides:
- disconnectin class- io.netty.channel.ChannelDuplexHandler
- Throws:
- Exception
 
 - 
closepublic void close(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise) throws Exception- Specified by:
- closein interface- io.netty.channel.ChannelOutboundHandler
- Overrides:
- closein class- io.netty.channel.ChannelDuplexHandler
- Throws:
- Exception
 
 - 
deregisterpublic void deregister(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise) throws Exception- Specified by:
- deregisterin interface- io.netty.channel.ChannelOutboundHandler
- Overrides:
- deregisterin class- io.netty.channel.ChannelDuplexHandler
- Throws:
- Exception
 
 - 
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
 
 - 
writepublic void write(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise) throws Exception- Specified by:
- writein interface- io.netty.channel.ChannelOutboundHandler
- Overrides:
- writein class- io.netty.channel.ChannelDuplexHandler
- Throws:
- Exception
 
 - 
flushpublic void flush(io.netty.channel.ChannelHandlerContext ctx) throws Exception- Specified by:
- flushin interface- io.netty.channel.ChannelOutboundHandler
- Overrides:
- flushin class- io.netty.channel.ChannelDuplexHandler
- Throws:
- Exception
 
 
- 
 
-