org.apache.james.jms.consumer
Class LogConsumer

java.lang.Object
  extended by org.apache.james.jms.consumer.LogConsumer
All Implemented Interfaces:
MailConsumer

public final class LogConsumer
extends java.lang.Object
implements MailConsumer

Sample consumer just logs. Useful for debugging.


Constructor Summary
LogConsumer()
           
 
Method Summary
 void consume(org.apache.mailet.Mail mail)
          Consumes the given mail message.
 org.apache.commons.logging.Log getLog()
           
 void reportIssue(java.lang.Exception e, java.lang.Object message)
          Reports an exception.
 void setLog(org.apache.commons.logging.Log log)
           
 java.lang.String toString()
          Renders into a string suitable for logging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogConsumer

public LogConsumer()
Method Detail

consume

public void consume(org.apache.mailet.Mail mail)
Description copied from interface: MailConsumer
Consumes the given mail message.

Specified by:
consume in interface MailConsumer

reportIssue

public void reportIssue(java.lang.Exception e,
                        java.lang.Object message)
Description copied from interface: MailConsumer
Reports an exception.

Specified by:
reportIssue in interface MailConsumer
Parameters:
e - Exception, not null
message - being processed

getLog

public org.apache.commons.logging.Log getLog()

setLog

public void setLog(org.apache.commons.logging.Log log)

toString

public java.lang.String toString()
Renders into a string suitable for logging.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this object.


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.