⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
gnu.mail.providers.nntp

Class NNTPStore

java.lang.Object
|
+--javax.mail.Service
   |
   +--javax.mail.Store
      |
      +--gnu.mail.providers.nntp.NNTPStore


public class NNTPStore
extends Store

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

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.

boolean

protocolConnect(String host, int port, String username, String password)

Performs the protocol connection.

Constructor Details

NNTPStore

public NNTPStore(Session session, URLName url)

Constructor.

Parameters:
session - the session
url - the connection URL

Method Details

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.

Parameters:
name

getFolder

public Folder getFolder(URLName url)

Returns the folder whose name corresponds to the file part of the specified URL.

Parameters:
url

protocolConnect

protected boolean protocolConnect(String host, int port, String username, String password)

Performs the protocol connection.

Parameters:
host
port
username
password