Package com.icegreen.greenmail.smtp
Class SmtpConnection
java.lang.Object
com.icegreen.greenmail.smtp.SmtpConnection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondotLimitedInputStream(byte[] initialContent) Reads the contents of the stream until <CRLF>.<CRLF> is encountered.booleanChecks if there was a successful authentication for this connection.voidquit()readLine()voidvoidsetAuthenticated(boolean authenticated) Sets the authentication state of this connection.void
-
Constructor Details
-
SmtpConnection
- Throws:
IOException
-
-
Method Details
-
send
-
readLine
- Throws:
IOException
-
dotLimitedInputStream
Reads the contents of the stream until <CRLF>.<CRLF> is encountered.- Parameters:
initialContent- initial content- Returns:
- a limited input stream.
-
getClientAddress
-
getServerAddress
-
getServerGreetingsName
-
getHeloName
-
setHeloName
-
quit
public void quit() -
isAuthenticated
public boolean isAuthenticated()Checks if there was a successful authentication for this connection.- Returns:
- true, if authenticated
-
setAuthenticated
public void setAuthenticated(boolean authenticated) Sets the authentication state of this connection.- Parameters:
authenticated- true,
-