⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
gnu.mail.providers.pop3

Class POP3Store

java.lang.Object
|
+--javax.mail.Service
   |
   +--javax.mail.Store
      |
      +--gnu.mail.providers.pop3.POP3Store


public final class POP3Store
extends Store

The storage class implementing the POP3 mail protocol.
Authors:

Constructor Summary

POP3Store(Session session, URLName urlname)

Constructor.

Method Summary

void

close()

Closes the connection.

Folder

getDefaultFolder()

Returns the root folder.

Folder

getFolder(String s)

Returns the folder with the specified name.

Folder

getFolder(URLName urlname)

Returns the folder whose name is the file part of the specified URLName.

boolean

protocolConnect(String host, int port, String username, String password)

Connects to the POP3 server and authenticates with the specified parameters.

Constructor Details

POP3Store

public POP3Store(Session session, URLName urlname)

Constructor.

Parameters:
session
urlname

Method Details

close

public void close()

Closes the connection.


getDefaultFolder

public Folder getDefaultFolder()

Returns the root folder.


getFolder

public Folder getFolder(String s)

Returns the folder with the specified name.

Parameters:
s

getFolder

public Folder getFolder(URLName urlname)

Returns the folder whose name is the file part of the specified URLName.

Parameters:
urlname

protocolConnect

protected boolean protocolConnect(String host, int port, String username, String password)

Connects to the POP3 server and authenticates with the specified parameters.

Parameters:
host
port
username
password