FileDocCategorySizeDatePackage
DumpSystemErr.javaAPI DocApache James 2.3.12214Fri Jan 12 12:56:30 GMT 2007org.apache.james.transport.mailets.debug

DumpSystemErr

public class DumpSystemErr extends org.apache.mailet.GenericMailet
Debugging purpose Mailet. Sends the message to System.err

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetMailetInfo()
Return a string describing this mailet.

return
a string describing this mailet

        return "Dumps message to System.err";
    
public voidservice(org.apache.mailet.Mail mail)
Writes the message to System.err .

param
mail the mail to process
throws
MessagingException if an error occurs while writing the message

        try {
            MimeMessage message = mail.getMessage();
            message.writeTo(System.err);
        } catch (IOException ioe) {
            log("error printing message", ioe);
        }