public class NNTPStore extends Store
| Constructor | Description |
|---|---|
NNTPStore(Session session,
URLName url) |
Constructor.
|
| Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddConnectionListener, connect, connect, connect, connect, getURLName, isConnected, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, setURLName, toStringaddFolderListener, addStoreListener, getPersonalNamespaces, getSharedNamespaces, getUserNamespaces, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListenerprotected boolean protocolConnect(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
throws MessagingException
protocolConnect in class Servicehost - 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 ServiceMessagingExceptionpublic Folder getDefaultFolder() throws MessagingException
getDefaultFolder in class StoreMessagingExceptionpublic Folder getFolder(java.lang.String name) throws MessagingException
getFolder in class Storename - the folder nameMessagingExceptionpublic Folder getFolder(URLName url) throws MessagingException
file part
of the specified URL.getFolder in class Storeurl - a URLName denoting a folderMessagingException© Copyright 2003, 2004 The Free Software Foundation, All rights reserved