Class TestMailServer.MailServer
java.lang.Object
org.springframework.integration.test.mail.TestMailServer.MailServer
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
TestMailServer.ImapServer
,TestMailServer.Pop3Server
,TestMailServer.SmtpServer
- Enclosing class:
- TestMailServer
public abstract static class TestMailServer.MailServer extends Object implements Runnable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
TestMailServer.MailServer.MailHandler
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>
assertions
protected static String
IO_EXCEPTION
protected Log
LOGGER
protected List<String>
messages
-
Method Summary
Modifier and Type Method Description boolean
assertReceived(String assertion)
List<String>
getMessages()
int
getPort()
boolean
isListening()
protected abstract TestMailServer.MailServer.MailHandler
mailHandler(Socket socket)
void
resetServer()
void
run()
void
stop()
-
Field Details
-
Method Details
-
getPort
public int getPort() -
isListening
public boolean isListening() -
getMessages
-
resetServer
public void resetServer() -
assertReceived
-
run
public void run() -
mailHandler
-
stop
public void stop()
-