Package com.icegreen.greenmail.smtp
Class SmtpHandler
- java.lang.Object
-
- com.icegreen.greenmail.server.AbstractSocketProtocolHandler
-
- com.icegreen.greenmail.smtp.SmtpHandler
-
- All Implemented Interfaces:
ProtocolHandler,Runnable
public class SmtpHandler extends AbstractSocketProtocolHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected SmtpConnectionconnprotected StringcurrentLineprotected SmtpManagermanagerprotected SmtpCommandRegistryregistryprotected SmtpStatestate-
Fields inherited from class com.icegreen.greenmail.server.AbstractSocketProtocolHandler
closeMonitor, log, quitting, socket
-
-
Constructor Summary
Constructors Constructor Description SmtpHandler(SmtpCommandRegistry registry, SmtpManager manager, Socket socket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancommandLegalSize()protected voidhandleCommand()voidrun()protected voidsendGreetings()-
Methods inherited from class com.icegreen.greenmail.server.AbstractSocketProtocolHandler
close, getSoTimeout, isQuitting, setQuitting
-
-
-
-
Field Detail
-
registry
protected SmtpCommandRegistry registry
-
manager
protected SmtpManager manager
-
conn
protected SmtpConnection conn
-
state
protected SmtpState state
-
currentLine
protected String currentLine
-
-
Constructor Detail
-
SmtpHandler
public SmtpHandler(SmtpCommandRegistry registry, SmtpManager manager, Socket socket)
-
-
Method Detail
-
run
public void run()
-
sendGreetings
protected void sendGreetings()
-
handleCommand
protected void handleCommand() throws IOException- Throws:
IOException
-
commandLegalSize
protected boolean commandLegalSize()
-
-