Package net.messagevortex.transport
Class ServerConnection
java.lang.Object
net.messagevortex.transport.AbstractConnection
net.messagevortex.transport.ServerConnection
- Direct Known Subclasses:
ImapConnection
A generic listening server connection.
-
Field Summary
Fields inherited from class net.messagevortex.transport.AbstractConnection
CRLF -
Constructor Summary
ConstructorsConstructorDescriptionServerConnection(SocketChannel channel, SecurityContext context) Creates a server connection based on a server channel.Creates a connection based on a template connection. -
Method Summary
Methods 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, shutdown, startTls, startTls, write, write, writeln, writeln
-
Constructor Details
-
ServerConnection
Creates a server connection based on a server channel.
- Parameters:
channel- the channel to be usedcontext- the security context to be applied to the connection
-
ServerConnection
Creates a connection based on a template connection.
- Parameters:
ac- the template connection
-