Class SmtpHandler
java.lang.Object
com.icegreen.greenmail.server.AbstractSocketProtocolHandler
com.icegreen.greenmail.smtp.SmtpHandler
- All Implemented Interfaces:
ProtocolHandler, Runnable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SmtpConnectionprotected Stringstatic final intprotected SmtpManagerprotected SmtpCommandRegistryprotected SmtpStateFields inherited from class AbstractSocketProtocolHandler
closeMonitor, log, quitting, socket -
Constructor Summary
ConstructorsConstructorDescriptionSmtpHandler(SmtpCommandRegistry registry, SmtpManager manager, Socket socket) -
Method Summary
Methods inherited from class AbstractSocketProtocolHandler
close, getSoTimeout, isQuitting, setQuittingModifier and TypeMethodDescriptionvoidclose()Resets the handler data to a basic state.protected longGets current socket SO_TIMEOUTbooleanPreparing for closing handler connection?voidsetQuitting(boolean quitting) Signal for closing handler.
-
Field Details
-
LINE_LENGHT_LIMIT
public static final int LINE_LENGHT_LIMIT- See Also:
-
registry
-
manager
-
conn
-
state
-
currentLine
-
-
Constructor Details
-
SmtpHandler
-
-
Method Details
-
run
public void run() -
sendGreetings
protected void sendGreetings() -
handleCommand
- Throws:
IOException
-
commandLegalSize
protected boolean commandLegalSize()
-