public class SmtpHandler extends Object implements ProtocolHandler
Modifier and Type | Field and Description |
---|---|
protected SmtpConnection |
conn |
protected String |
currentLine |
protected static org.slf4j.Logger |
log |
protected SmtpManager |
manager |
protected boolean |
quitting |
protected SmtpCommandRegistry |
registry |
protected Socket |
socket |
protected SmtpState |
state |
protected Workspace |
workspace |
Constructor and Description |
---|
SmtpHandler(SmtpCommandRegistry registry,
SmtpManager manager,
Workspace workspace,
Socket socket) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes all resources, such as sockets.
|
protected boolean |
commandLegalSize() |
protected void |
handleCommand() |
void |
run() |
protected void |
sendGreetings() |
protected static final org.slf4j.Logger log
protected SmtpCommandRegistry registry
protected SmtpManager manager
protected Workspace workspace
protected SmtpConnection conn
protected SmtpState state
protected boolean quitting
protected String currentLine
protected Socket socket
public SmtpHandler(SmtpCommandRegistry registry, SmtpManager manager, Workspace workspace, Socket socket)
protected void sendGreetings()
protected void handleCommand() throws IOException
IOException
protected boolean commandLegalSize()
public void close()
ProtocolHandler
close
in interface ProtocolHandler
Copyright © 2006–2019 Icegreen Technologies. All rights reserved.