Methods Summary |
---|
public boolean | canTrySslSecurity()
|
public boolean | canTryTlsSecurity()
|
public void | close()Closes the connection. Does not send any closure messages, simply closes the socket and the
associated streams. Best effort only. Catches all exceptions and always returns.
MUST NOT throw any exceptions.
|
public java.lang.String | getHost()
|
public java.io.InputStream | getInputStream()
|
public java.io.OutputStream | getOutputStream()
|
public int | getPort()
|
public int | getSecurity()
|
public java.lang.String[] | getUserInfoParts()Returns the user info parts of the Uri, if any were supplied. Typically, [0] is the user
and [1] is the password.
|
public boolean | isOpen()
|
public com.android.email.mail.Transport | newInstanceWithConfiguration()Get a new transport, using an existing one as a model. The new transport is configured as if
setUri() and setSecurity() have been called, but not opened or connected in any way.
|
public void | open()Attempts to open the connection using the supplied parameters, and using SSL if indicated.
|
public java.lang.String | readLine()Reads a single line from the server. Any delimiter characters will not be included in the
result. May generate a log entry, if enabled.
|
public void | reopenTls()Attempts to reopen the connection using TLS.
|
public void | setSecurity(int connectionSecurity)Set the desired security mode for this connection.
|
public void | setSoTimeout(int timeoutMilliseconds)Set the socket timeout.
|
public void | setUri(java.net.URI uri, int defaultPort)Set the Uri for the connection.
|
public void | writeLine(java.lang.String s, java.lang.String sensitiveReplacement)Write a single line to the server, and may generate a log entry (if enabled).
|