Package net.messagevortex.transport.smtp
Class SmtpConnection
java.lang.Object
net.messagevortex.transport.AbstractConnection
net.messagevortex.transport.ClientConnection
net.messagevortex.transport.smtp.SmtpConnection
Creates a connection to a SMTP Server Socket.
-
Field Summary
Fields inherited from class net.messagevortex.transport.AbstractConnection
CRLF -
Constructor Summary
ConstructorsConstructorDescriptionSmtpConnection(InetSocketAddress socketAddress, SecurityContext context, Credentials creds) SmtpConnection(SocketChannel channel, SecurityContext secContext, Credentials creds) -
Method Summary
Modifier and TypeMethodDescriptionGets the currently set transport receiver.voidSets the thread name of the connection handler.setReceiver(TransportReceiver receiver) Sets the transport receiver.Methods inherited from class net.messagevortex.transport.ClientConnection
shutdownMethods inherited from class net.messagevortex.transport.AbstractConnection
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
-
Constructor Details
-
SmtpConnection
public SmtpConnection(InetSocketAddress socketAddress, SecurityContext context, Credentials creds) throws IOException - Throws:
IOException
-
SmtpConnection
public SmtpConnection(SocketChannel channel, SecurityContext secContext, Credentials creds) throws IOException - Throws:
IOException
-
-
Method Details
-
getReceiver
Gets the currently set transport receiver.
- Returns:
- the currently set transport receiver
-
setReceiver
Sets the transport receiver.
- Parameters:
receiver- the transport receiver to be set- Returns:
- the previously set transport receiver
-
setName
Sets the thread name of the connection handler.
- Parameters:
name- the name to be set
-