java.lang.Object | +--org.apache.commons.net.SocketClient | +--org.apache.commons.net.pop3.POP3Known Direct Subclasses:
POP3Client
org.apache.commons.net.MalformedServerReplyException
static int | A constant representing the POP3 authorization state. |
static int | The default POP3 port. |
static int | A constant representing the state where the client is not yet connected to a POP3 server. |
static int | A constant representing the POP3 transaction state. |
static int | A constant representing the POP3 update state. |
A ProtocolCommandSupport object used to manage the registering of ProtocolCommandListeners and te firing of ProtocolCommandEvents. |
POP3() The default POP3Client constructor. |
void | Performs connection initialization and sets state to AUTHORIZATION_STATE . |
void | addProtocolCommandListener(ProtocolCommandListener listener) Adds a ProtocolCommandListener. |
void | Disconnects the client from the server, and sets the state to DISCONNECTED_STATE . |
void | Retrieves the additional lines of a multi-line server reply. |
String | Returns the reply to the last command sent to the server. |
String[] | Returns an array of lines received as a reply to the last command sent to the server. |
int | getState() Returns the current POP3 client state. |
void | removeProtocolCommandistener(ProtocolCommandListener listener) Removes a ProtocolCommandListener. |
int | sendCommand(String command, String args) Sends a command an arguments to the server and returns the reply code. |
int | sendCommand(String command) Sends a command with no arguments to the server and returns the reply code. |
int | sendCommand(int command, String args) Sends a command an arguments to the server and returns the reply code. |
int | sendCommand(int command) Sends a command with no arguments to the server and returns the reply code. |
void | setState(int state) Sets POP3 client state. |
public static final int AUTHORIZATION_STATE
public static final int DEFAULT_PORT
public static final int DISCONNECTED_STATE
public static final int TRANSACTION_STATE
public static final int UPDATE_STATE
protected ProtocolCommandSupport _commandSupport_
public POP3()
DISCONNECTED_STATE.
protected void _connectAction_()
AUTHORIZATION_STATE .
public void addProtocolCommandListener(ProtocolCommandListener listener)
public void disconnect()
DISCONNECTED_STATE . The reply text information
from the last issued command is voided to allow garbage collection
of the memory used to store that information.
- If there is an error in disconnecting.public void getAdditionalReply()
public String getReplyString()
getReplyString
again. You only have to worry about this if you are implementing
your own client using the sendCommand methods.
public String[] getReplyStrings()
getReplyStrings
again. You only have to worry about this if you are implementing
your own client using the sendCommand methods.
public int getState()
public void removeProtocolCommandistener(ProtocolCommandListener listener)
public int sendCommand(String command)
public int sendCommand(String command, String args)
public int sendCommand(int command)
public int sendCommand(int command, String args)
public void setState(int state)
_STATE constants.