Java org.apache.commons.net.imap IMAPClient fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.net.imap IMAPClient fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.net.imap IMAPClient.

The text is from its open source code.

Constructor

Method

voidaddProtocolCommandListener(ProtocolCommandListener listener)
Adds a ProtocolCommandListener.
booleancapability()
Send a CAPABILITY command to the server.
booleanclose()
Send a CLOSE command to the server.
voidconnect(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.
voidconnect(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.
voiddisconnect()
Disconnects the client from the server, and sets the state to DISCONNECTED_STATE .
booleandoCommand(IMAPCommand command)
Sends a command to the server and return whether successful.
booleanexamine(String mailboxName)
Send an EXAMINE command to the server.
booleanexpunge()
Send an EXPUNGE command to the server.
booleanfetch(String sequenceSet, String itemNames)
Send a FETCH command to the server.
intgetDefaultPort()
Returns the current value of the default port (stored in #_defaultPort_ _defaultPort_ ).
InetAddressgetLocalAddress()
Returns the local address to which the client's socket is bound.
intgetLocalPort()
Returns the port number of the open socket on the local host used for the connection.
StringgetReplyString()
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.
booleanisConnected()
Returns true if the client is currently connected to a server.
booleanlist(String refName, String mailboxName)
Send a LIST command to the server.
booleanlogin(String username, String password)
Login to the IMAP server with the given username and password.
booleanlogout()
Send a LOGOUT command to the server.
booleannoop()
Send a NOOP command to the server.
booleanselect(String mailboxName)
Send a SELECT command to the server.
voidsetConnectTimeout(int connectTimeout)
Sets the connection timeout in milliseconds, which will be passed to the Socket object's connect() method.
voidsetDefaultPort(int port)
Sets the default port the SocketClient should connect to when a port is not specified.
voidsetDefaultTimeout(int timeout)
Set the default timeout in milliseconds to use when opening a socket.
voidsetSoTimeout(int timeout)
Set the timeout in milliseconds of a currently open connection.
booleanstatus(String mailboxName, String[] itemNames)
Send a STATUS command to the server.
booleanstore(String sequenceSet, String itemNames, String itemValues)
Send a STORE command to the server.