Method ordering

This commit is contained in:
Trustin Lee 2009-05-22 06:13:47 +00:00
parent 7b87b1b23c
commit 903fde7704

View File

@ -84,18 +84,6 @@ public class LoggingHandler implements ChannelUpstreamHandler, ChannelDownstream
this.hexDump = hexDump;
}
public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e)
throws Exception {
log(e);
ctx.sendUpstream(e);
}
public void handleDownstream(ChannelHandlerContext ctx, ChannelEvent e)
throws Exception {
log(e);
ctx.sendDownstream(e);
}
public InternalLogger getLogger() {
return logger;
}
@ -133,4 +121,16 @@ public class LoggingHandler implements ChannelUpstreamHandler, ChannelDownstream
public void log(String msg, Throwable cause) {
getLogger().debug(msg, cause);
}
public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e)
throws Exception {
log(e);
ctx.sendUpstream(e);
}
public void handleDownstream(ChannelHandlerContext ctx, ChannelEvent e)
throws Exception {
log(e);
ctx.sendDownstream(e);
}
}