org.codehaus.plexus.mailsender.test
Class DumbsterSmtpServer

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by 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

Field Summary
 
Fields inherited from interface org.codehaus.plexus.mailsender.test.SmtpServer
ROLE
 
Constructor Summary
DumbsterSmtpServer()
           
 
Method Summary
 java.util.Iterator getReceivedEmail()
          Get email received by this instance since start up.
 int getReceivedEmailSize()
          Get the number of messages received.
 void start()
           
 void stop()
           
 
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
 

Constructor Detail

DumbsterSmtpServer

public DumbsterSmtpServer()
Method Detail

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 © 2011. All Rights Reserved.