@ChannelPipelineCoverage(value="one") public class SmppSessionLogger extends Object implements org.jboss.netty.channel.ChannelUpstreamHandler, org.jboss.netty.channel.ChannelDownstreamHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
SmppSessionLogger.Direction |
| Constructor and Description |
|---|
SmppSessionLogger(String name)
Creates a new instance with the specified logger name.
|
SmppSessionLogger(String name,
LoggingOptions options) |
| Modifier and Type | Method and Description |
|---|---|
org.slf4j.Logger |
getLogger()
Gets the logger that this handler uses to log a ChannelEvent
|
LoggingOptions |
getOptions()
Gets the logging options used by this handler for logging.
|
void |
handleDownstream(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelEvent e) |
void |
handleUpstream(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelEvent e) |
protected void |
log(SmppSessionLogger.Direction direction,
org.jboss.netty.channel.ChannelEvent evt)
Logs the specified event to the
InternalLogger returned by
getLogger(). |
public SmppSessionLogger(String name)
public SmppSessionLogger(String name, LoggingOptions options)
public org.slf4j.Logger getLogger()
public LoggingOptions getOptions()
protected void log(SmppSessionLogger.Direction direction, org.jboss.netty.channel.ChannelEvent evt)
InternalLogger returned by
getLogger(). If hex dump has been enabled for this handler,
the hex dump of the ChannelBuffer in a MessageEvent will
be logged together.public void handleUpstream(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelEvent e)
throws Exception
handleUpstream in interface org.jboss.netty.channel.ChannelUpstreamHandlerExceptionCopyright © 2009-2014 Cloudhopper by Twitter. All Rights Reserved.