public class ImapConnection extends ServerConnection implements Comparable<ImapConnection>
CRLF
Constructor and Description |
---|
ImapConnection(AbstractConnection ac,
AuthenticationProxy proxy)
Creates an ImapConnection.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ImapConnection i) |
boolean |
equals(Object i) |
AuthenticationProxy |
getAuth()
Get the authentication proxy of the connection.
|
ImapConnectionState |
getImapState() |
int |
hashCode() |
AuthenticationProxy |
setAuth(AuthenticationProxy authProxy)
Setter for the authentication proxy handling incomming requests for authentication.
|
void |
setId(String id)
Sets the thread name of the connection handler.
|
ImapConnectionState |
setImapState(ImapConnectionState status)
Sets the current authentication state of the connection.
|
void |
shutdown()
Tear down connection handler thread.
|
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 ImapConnection(AbstractConnection ac, AuthenticationProxy proxy)
Creates an ImapConnection.
ac
- the connection to be wrappedproxy
- the authentication proxy to be used for loginpublic final AuthenticationProxy setAuth(AuthenticationProxy authProxy)
Setter for the authentication proxy handling incomming requests for authentication.
authProxy
- the proxy to be setpublic AuthenticationProxy getAuth()
Get the authentication proxy of the connection.
public void setId(String id)
Sets the thread name of the connection handler.
id
- the thread name to be setpublic ImapConnectionState setImapState(ImapConnectionState status)
Sets the current authentication state of the connection.
status
- the new connection statepublic ImapConnectionState getImapState()
public int compareTo(ImapConnection i)
compareTo
in interface Comparable<ImapConnection>
public void shutdown()
Tear down connection handler thread.
shutdown
in class AbstractConnection
Copyright © 2023. All rights reserved.