public class SmtpConnection extends Object
| Constructor and Description |
|---|
SmtpConnection(com.icegreen.greenmail.smtp.SmtpHandler handler,
Socket sock) |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientAddress() |
String |
getHeloName() |
BufferedReader |
getReader() |
InetAddress |
getServerAddress() |
String |
getServerGreetingsName() |
boolean |
isAuthenticated()
Checks if there was a successful authentication for this connection.
|
void |
quit() |
String |
receiveLine() |
void |
send(String line) |
void |
setAuthenticated(boolean authenticated)
Sets the authentication state of this connection.
|
void |
setHeloName(String n) |
public SmtpConnection(com.icegreen.greenmail.smtp.SmtpHandler handler,
Socket sock)
throws IOException
IOExceptionpublic void send(String line)
public BufferedReader getReader()
public String receiveLine() throws IOException
IOExceptionpublic String getClientAddress()
public InetAddress getServerAddress()
public String getServerGreetingsName()
public String getHeloName()
public void setHeloName(String n)
public void quit()
public boolean isAuthenticated()
public void setAuthenticated(boolean authenticated)
authenticated - true,Copyright © 2006–2018 Icegreen Technologies. All rights reserved.