gnu.mail.providers.nntp

Class NNTPStore

public class NNTPStore extends Store

An NNTP store provider. This uses an NNTPConnection to handle all the protocol-related functionality.

Version: 2.0

Author: Chris Burdess

Constructor Summary
NNTPStore(Session session, URLName url)
Constructor.
Method Summary
voidclose()
Close the connection.
FoldergetDefaultFolder()
Returns the folder representing the "root" namespace.
FoldergetFolder(String name)
Returns a folder by name.
FoldergetFolder(URLName url)
Returns the folder whose name corresponds to the file part of the specified URL.
protected booleanprotocolConnect(String host, int port, String username, String password)
Performs the protocol connection.

Constructor Detail

NNTPStore

public NNTPStore(Session session, URLName url)
Constructor.

Parameters: session the session url the connection URL

Method Detail

close

public void close()
Close the connection.

getDefaultFolder

public Folder getDefaultFolder()
Returns the folder representing the "root" namespace. This folder can be used to browse the folder hierarchy.

getFolder

public Folder getFolder(String name)
Returns a folder by name.

getFolder

public Folder getFolder(URLName url)
Returns the folder whose name corresponds to the file part of the specified URL.

protocolConnect

protected boolean protocolConnect(String host, int port, String username, String password)
Performs the protocol connection.
©