|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.mail.Service
javax.mail.Store
gnu.mail.providers.nntp.NNTPStore
public class NNTPStore
An NNTP store provider. This uses an NNTPConnection to handle all the protocol-related functionality.
| Field Summary |
|---|
| Fields inherited from class javax.mail.Service |
|---|
debug, session, url |
| Constructor Summary | |
|---|---|
NNTPStore(Session session,
URLName url)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class javax.mail.Store |
|---|
addFolderListener, addStoreListener, getPersonalNamespaces, getSharedNamespaces, getUserNamespaces, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListener |
| Methods inherited from class javax.mail.Service |
|---|
addConnectionListener, connect, connect, connect, connect, getURLName, isConnected, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, setURLName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NNTPStore(Session session,
URLName url)
session - the sessionurl - the connection URL| Method Detail |
|---|
protected boolean protocolConnect(String host,
int port,
String username,
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 password
AuthenticationFailedException - on authentication failure
MessagingException - for non-authentication failures
public void close()
throws MessagingException
close in class ServiceMessagingException
public Folder getDefaultFolder()
throws MessagingException
getDefaultFolder in class StoreMessagingException
public Folder getFolder(String name)
throws MessagingException
getFolder in class Storename - the folder name
MessagingException
public Folder getFolder(URLName url)
throws MessagingException
file part
of the specified URL.
getFolder in class Storeurl - a URLName denoting a folder
MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||