Java org.apache.commons.net.pop3 POP3Client fields, constructors, methods, implement or subclass

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

Introduction

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

The text is from its open source code.

Constructor

Method

voidaddProtocolCommandListener(ProtocolCommandListener listener)
Adds a ProtocolCommandListener.
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.
booleandeleteMessage(int messageId)
Delete a message from the POP3 server.
voiddisconnect()
Disconnects the client from the server, and sets the state to DISCONNECTED_STATE .
voidgetAdditionalReply()
Retrieves the additional lines of a multi-line server reply.
intgetDefaultPort()
Returns the current value of the default port (stored in #_defaultPort_ _defaultPort_ ).
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.
intgetState()
Returns the current POP3 client state.
booleanisConnected()
Returns true if the client is currently connected to a server.
POP3MessageInfolistMessage(int messageId)
List an individual message.
POP3MessageInfo[]listMessages()
List all messages.
POP3MessageInfolistUniqueIdentifier(int messageId)
List the unique identifier for a message.
POP3MessageInfo[]listUniqueIdentifiers()
List the unique identifiers for all messages.
booleanlogin(String username, String password)
Login to the POP3 server with the given username and password.
booleanlogout()
Logout of the POP3 server.
booleannoop()
Send a NOOP command to the POP3 server.
booleanreset()
Reset the POP3 session.
ReaderretrieveMessage(int messageId)
Retrieve a message from the POP3 server.
ReaderretrieveMessageTop(int messageId, int numLines)
Retrieve only the specified top number of lines of a message from the POP3 server.
intsendCommand(String command, String args)
Sends a command an arguments to the server and returns the reply code.
intsendCommand(String command)
Sends a command with no arguments to the server and returns the reply code.
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.
voidsetKeepAlive(boolean keepAlive)
Sets the SO_KEEPALIVE flag on the currently opened socket.
voidsetReceiveBufferSize(int size)
Sets the underlying socket receive buffer size.
voidsetSendBufferSize(int size)
Set the underlying socket send buffer size.
voidsetSoTimeout(int timeout)
Set the timeout in milliseconds of a currently open connection.
voidsetState(int state)
Set the internal POP3 state.
voidsetTcpNoDelay(boolean on)
Enables or disables the Nagle's algorithm (TCP_NODELAY) on the currently opened socket.
POP3MessageInfostatus()
Get the mailbox status.