gnu.mail.providers.nntp
Class NNTPStore
An NNTP store provider.
This uses an NNTPConnection to handle all the protocol-related
functionality.
void | close() - Close the connection.
|
Folder | getDefaultFolder() - Returns the folder representing the "root" namespace.
|
Folder | getFolder(String name) - Returns a folder by name.
|
Folder | getFolder(URLName url) - Returns the folder whose name corresponds to the
file part
of the specified URL.
|
protected boolean | protocolConnect(String host, int port, String username, String password) - Performs the protocol connection.
|
addFolderListener , addStoreListener , getDefaultFolder , getFolder , getFolder , getPersonalNamespaces , getSharedNamespaces , getUserNamespaces , notifyFolderListeners , notifyFolderRenamedListeners , notifyStoreListeners , removeFolderListener , removeStoreListener |
addConnectionListener , close , connect , connect , connect , getURLName , isConnected , notifyConnectionListeners , protocolConnect , removeConnectionListener , setConnected , setURLName , toString |
NNTPStore
public NNTPStore(Session session,
URLName url)
Constructor.
session
- the sessionurl
- the connection URL
getDefaultFolder
public Folder getDefaultFolder()
throws MessagingException
Returns the folder representing the "root" namespace.
This folder can be used to browse the folder hierarchy.
- getDefaultFolder in interface Store
getFolder
public Folder getFolder(URLName url)
throws MessagingException
Returns the folder whose name corresponds to the file
part
of the specified URL.
- getFolder in interface Store
protocolConnect
protected boolean protocolConnect(String host,
int port,
String username,
String password)
throws MessagingException
Performs the protocol connection.
- protocolConnect in interface Service