public class SmtpConnection extends Object
| Constructor and Description |
|---|
SmtpConnection(SmtpHandler handler,
Socket sock) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
dotLimitedInputStream(byte[] initialContent)
Reads the contents of the stream until
<CRLF>.<CRLF> is encountered.
|
String |
getClientAddress() |
String |
getHeloName() |
InetAddress |
getServerAddress() |
String |
getServerGreetingsName() |
boolean |
isAuthenticated()
Checks if there was a successful authentication for this connection.
|
void |
quit() |
String |
readLine() |
void |
send(String line) |
void |
setAuthenticated(boolean authenticated)
Sets the authentication state of this connection.
|
void |
setHeloName(String n) |
public SmtpConnection(SmtpHandler handler, Socket sock) throws IOException
IOExceptionpublic void send(String line)
public String readLine() throws IOException
IOExceptionpublic InputStream dotLimitedInputStream(byte[] initialContent)
initialContent - initial contentpublic 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–2022 Icegreen Technologies. All rights reserved.