|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.mail.impl.SmtpServerImpl
public class SmtpServerImpl
Wrapper class for the SimpleSmtpServer of Wiser.
| Constructor Summary | |
|---|---|
SmtpServerImpl(int port)
|
|
| Method Summary | |
|---|---|
java.util.List<SmtpMessage> |
getReceivedEmail()
It returns all the mails that were received on the fake SMTP server. |
int |
getReceivedEmailSize()
This method give you the amount of mails that you've sent to the SMTP server. |
java.lang.Boolean |
isRunning()
Returns if the server is running or not. |
void |
stop()
This method will stop the SMTP server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SmtpServerImpl(int port)
port - | Method Detail |
|---|
public java.util.List<SmtpMessage> getReceivedEmail()
throws java.io.IOException,
javax.mail.MessagingException
getReceivedEmail in interface SmtpServerjavax.mail.MessagingException
java.io.IOExceptionpublic int getReceivedEmailSize()
SmtpServer
getReceivedEmailSize in interface SmtpServerpublic void stop()
SmtpServer
stop in interface SmtpServerpublic java.lang.Boolean isRunning()
SmtpServer
isRunning in interface SmtpServerBoolean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||