|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hs.mail.imap.server.DebuggingHandler
@ChannelPipelineCoverage(value="all") public class DebuggingHandler
A ChannelHandler that logs all protocol streams.
Constructor Summary | |
---|---|
DebuggingHandler()
|
Method Summary | |
---|---|
void |
debug(org.jboss.netty.channel.ChannelEvent e)
Logs the specified event to the out returned by
getDebugOut() . |
PrintStream |
getDebugOut()
Returns the stream to be used for debugging output. |
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)
|
void |
setDebugOut(PrintStream out)
Set the stream to be used for debugging output. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DebuggingHandler()
Method Detail |
---|
public void setDebugOut(PrintStream out)
out
is
null, System.out
will be used.
out
- the PrintStream to use for debugging outputpublic PrintStream getDebugOut()
System.out
is returned.
public void debug(org.jboss.netty.channel.ChannelEvent e)
out
returned by
getDebugOut()
.
public void handleUpstream(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelEvent e) throws Exception
handleUpstream
in interface org.jboss.netty.channel.ChannelUpstreamHandler
Exception
public void handleDownstream(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelEvent e) throws Exception
handleDownstream
in interface org.jboss.netty.channel.ChannelDownstreamHandler
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |