public class NNTPStore extends Store
Constructor and Description |
---|
NNTPStore(Session session,
URLName url)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the connection.
|
Folder |
getDefaultFolder()
Returns the folder representing the "root" namespace.
|
Folder |
getFolder(java.lang.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(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
Performs the protocol connection.
|
addFolderListener, addStoreListener, getPersonalNamespaces, getSharedNamespaces, getUserNamespaces, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListener
addConnectionListener, connect, connect, connect, connect, getURLName, isConnected, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, setURLName, toString
protected boolean protocolConnect(java.lang.String host, int port, java.lang.String username, java.lang.String password) throws MessagingException
protocolConnect
in class Service
host
- the name of the host to connect toport
- the port to use (-1 for the default port)username
- the usernamepassword
- the passwordAuthenticationFailedException
- on authentication failureMessagingException
- for non-authentication failurespublic void close() throws MessagingException
close
in class Service
MessagingException
public Folder getDefaultFolder() throws MessagingException
getDefaultFolder
in class Store
MessagingException
public Folder getFolder(java.lang.String name) throws MessagingException
getFolder
in class Store
name
- the folder nameMessagingException
public Folder getFolder(URLName url) throws MessagingException
file
part
of the specified URL.getFolder
in class Store
url
- a URLName denoting a folderMessagingException