Example usage for Java org.apache.commons.net.pop3 POP3SClient fields, constructors, methods, implement or subclass
The text is from its open source code.
POP3SClient(String proto, boolean implicit) Constructor for POP3SClient. | |
POP3SClient(boolean implicit, SSLContext ctx) Constructor for POP3SClient, using #DEFAULT_PROTOCOL i.e. | |
POP3SClient(boolean implicit) Constructor for POP3SClient, using #DEFAULT_PROTOCOL i.e. | |
POP3SClient(String proto) Constructor for POP3SClient. | |
POP3SClient(SSLContext context) Constructor for POP3SClient, using #DEFAULT_PROTOCOL - TLS - and isImplicit = false |
void | connect(InetAddress host, int port) Opens a Socket connected to a remote host at the specified port and originating from the current host at a system assigned port. |
void | connect(InetAddress host) Opens a Socket connected to a remote host at the current default port and originating from the current host at a system assigned port. |
void | disconnect() Disconnects the client from the server, and sets the state to DISCONNECTED_STATE . |
boolean | execTLS() The TLS command execution. |
void | getAdditionalReply() Retrieves the additional lines of a multi-line server reply. |
String | getReplyString() Returns the reply to the last command sent to the server. |
String[] | getReplyStrings() Returns an array of lines received as a reply to the last command sent to the server. |
boolean | isConnected() Returns true if the client is currently connected to a server. |
POP3MessageInfo[] | listMessages() List all messages. |
boolean | login(String username, String password) Login to the POP3 server with the given username and password. |
int | sendCommand(String command) Sends a command with no arguments to the server and returns the reply code. |
void | setDefaultTimeout(int timeout) Set the default timeout in milliseconds to use when opening a socket. |
void | setEnabledCipherSuites(String[] cipherSuites) Controls which particular cipher suites are enabled for use on this connection. |
void | setEnabledProtocols(String[] protocolVersions) Controls which particular protocol versions are enabled for use on this connection. |
void | setTrustManager(TrustManager newTrustManager) Override the default TrustManager to use. |