Package net.messagevortex.transport.imap
Class ImapConnection
java.lang.Object
net.messagevortex.transport.AbstractConnection
net.messagevortex.transport.ServerConnection
net.messagevortex.transport.imap.ImapConnection
- All Implemented Interfaces:
Comparable<ImapConnection>
-
Field Summary
Fields inherited from class net.messagevortex.transport.AbstractConnection
CRLF -
Constructor Summary
ConstructorsConstructorDescriptionImapConnection(AbstractConnection ac, AuthenticationProxy proxy) Creates an ImapConnection. -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetAuth()Get the authentication proxy of the connection.inthashCode()final AuthenticationProxysetAuth(AuthenticationProxy authProxy) Setter for the authentication proxy handling incomming requests for authentication.voidSets the thread name of the connection handler.setImapState(ImapConnectionState status) Sets the current authentication state of the connection.voidshutdown()Tear down connection handler thread.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, startTls, startTls, write, write, writeln, writeln
-
Constructor Details
-
ImapConnection
Creates an ImapConnection.
- Parameters:
ac- the connection to be wrappedproxy- the authentication proxy to be used for login
-
-
Method Details
-
setAuth
Setter for the authentication proxy handling incomming requests for authentication.
- Parameters:
authProxy- the proxy to be set- Returns:
- the previously set proxy
-
getAuth
Get the authentication proxy of the connection.
- Returns:
- the currently set proxy
-
setId
Sets the thread name of the connection handler.
- Parameters:
id- the thread name to be set
-
setImapState
Sets the current authentication state of the connection.
- Parameters:
status- the new connection state- Returns:
- the previously set connection state
-
getImapState
-
compareTo
- Specified by:
compareToin interfaceComparable<ImapConnection>
-
equals
-
hashCode
public int hashCode() -
shutdown
public void shutdown()Tear down connection handler thread.
- Overrides:
shutdownin classAbstractConnection
-