public class SmtpConnection extends ClientConnection
Creates a connection to a SMTP Server Socket.
CRLF
Constructor and Description |
---|
SmtpConnection(InetSocketAddress socketAddress,
SecurityContext context,
Credentials creds) |
SmtpConnection(SocketChannel channel,
SecurityContext secContext,
Credentials creds) |
Modifier and Type | Method and Description |
---|---|
TransportReceiver |
getReceiver()
Gets the currently set transport receiver.
|
void |
setName(String name)
Sets the thread name of the connection handler.
|
TransportReceiver |
setReceiver(TransportReceiver receiver)
Sets the transport receiver.
|
shutdown
closeConnection, connect, do_handshake, do_teardown, enlargeApplicationBuffer, enlargeBuffer, enlargePacketBuffer, getDefaultTimeout, getEngine, getHostName, getPort, getProtocol, getSecurityContext, getSocketChannel, getTimeout, handleBufferUnderflow, handleEndOfStream, isShutdown, isTls, read, read, readln, readln, setDefaultTimeout, setEngine, setProtocol, setSecurityContext, setSocketChannel, setTimeout, startTls, startTls, write, write, writeln, writeln
public SmtpConnection(InetSocketAddress socketAddress, SecurityContext context, Credentials creds) throws IOException
IOException
public SmtpConnection(SocketChannel channel, SecurityContext secContext, Credentials creds) throws IOException
IOException
public TransportReceiver getReceiver()
Gets the currently set transport receiver.
public TransportReceiver setReceiver(TransportReceiver receiver)
Sets the transport receiver.
receiver
- the transport receiver to be setpublic void setName(String name)
Sets the thread name of the connection handler.
name
- the name to be setCopyright © 2023. All rights reserved.