org.codehaus.plexus.mailsender.test
Class DumbsterSmtpServer
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.mailsender.test.DumbsterSmtpServer
- All Implemented Interfaces:
- org.codehaus.plexus.logging.LogEnabled, SmtpServer, org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable
public class DumbsterSmtpServer
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements SmtpServer, org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable
- Version:
- $Id: DumbsterSmtpServer.java 2023 2005-05-28 19:15:47Z jvanzyl $
- Author:
- Trygve Laugstøl, Emmanuel Venisse
Fields inherited from interface org.codehaus.plexus.mailsender.test.SmtpServer |
ROLE |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DumbsterSmtpServer
public DumbsterSmtpServer()
start
public void start()
throws org.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException
- Specified by:
start
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable
- Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException
stop
public void stop()
throws org.codehaus.plexus.personality.plexus.lifecycle.phase.StoppingException
- Specified by:
stop
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable
- Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.StoppingException
getReceivedEmail
public java.util.Iterator getReceivedEmail()
- Get email received by this instance since start up.
- Specified by:
getReceivedEmail
in interface SmtpServer
- Returns:
- List of String
getReceivedEmailSize
public int getReceivedEmailSize()
- Get the number of messages received.
- Specified by:
getReceivedEmailSize
in interface SmtpServer
- Returns:
- size of received email list
Copyright © 2008. All Rights Reserved.