|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.jms.consumer.LogConsumer
public final class LogConsumer
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 |
|---|
public LogConsumer()
| Method Detail |
|---|
public void consume(org.apache.mailet.Mail mail)
MailConsumer
consume in interface MailConsumer
public void reportIssue(java.lang.Exception e,
java.lang.Object message)
MailConsumer
reportIssue in interface MailConsumere - Exception, not nullmessage - being processedpublic org.apache.commons.logging.Log getLog()
public void setLog(org.apache.commons.logging.Log log)
public java.lang.String toString()
toString in class java.lang.ObjectString representation
of this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||