|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.mail.Folder org.apache.geronimo.javamail.store.nntp.NNTPFolder org.apache.geronimo.javamail.store.nntp.NNTPRootFolder
public class NNTPRootFolder
The base NNTP implementation of the javax.mail.Folder This is a base class for both the Root NNTP server and each NNTP group folder.
Folder
Field Summary | |
---|---|
protected static String |
NNTP_LISTALL
|
Fields inherited from class org.apache.geronimo.javamail.store.nntp.NNTPFolder |
---|
connection, folderOpen, fullName, messageCount, name, parent, permanentFlags, session |
Fields inherited from class javax.mail.Folder |
---|
HOLDS_FOLDERS, HOLDS_MESSAGES, mode, READ_ONLY, READ_WRITE, store |
Constructor Summary | |
---|---|
protected |
NNTPRootFolder(NNTPStore store,
String name,
String fullName)
Construct the NNTPRootFolder. |
Method Summary | |
---|---|
protected Folder[] |
filterActiveGroups(String pattern)
Retrieve the list of matching groups from the NNTP server using the LIST ACTIVE command. |
protected Folder[] |
filterAllGroups(String pattern)
Retrieve a list of all groups from the server and filter on the names. |
protected Folder[] |
filterSubscribedGroups(String pattern)
Return the set of groups from the newsrc subscribed groups list that match a given filter. |
Folder |
getFolder(String name)
Get a new folder from the root folder. |
protected String |
getGroupName(String response)
Utility method for extracting a name from a group list response. |
int |
getType()
Return whether this folder can hold just messages or also subfolders. |
Folder[] |
list(String pattern)
List the subfolders. |
Folder[] |
listSubscribed(String pattern)
Retrieve the list of subscribed folders that match the given pattern string. |
Methods inherited from class org.apache.geronimo.javamail.store.nntp.NNTPFolder |
---|
appendMessages, checkClosed, checkOpen, close, closeFolder, create, delete, exists, expunge, getFullName, getMessage, getMessageCount, getName, getParent, getPermanentFlags, getSeparator, hasNewMessages, isOpen, isSeen, isSubscribed, notifyMessageChangedListeners, open, openFolder, renameTo, setSeen, setSubscribed |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final String NNTP_LISTALL
Constructor Detail |
---|
protected NNTPRootFolder(NNTPStore store, String name, String fullName)
store
- The owning Store.name
- The folder name (by default, this is the server host name).fullName
- The fullName to use for this server (derived from welcome
string).Method Detail |
---|
public Folder[] list(String pattern) throws MessagingException
list
in class NNTPFolder
pattern
- The folder pattern string.
MessagingException
public Folder[] listSubscribed(String pattern) throws MessagingException
listSubscribed
in class NNTPFolder
pattern
- The pattern string used for the matching
MessagingException
protected Folder[] filterActiveGroups(String pattern) throws MessagingException
pattern
- The pattern string (in wildmat format) used to match.
MessagingException
protected Folder[] filterAllGroups(String pattern) throws MessagingException
pattern
- The pattern string used for the selection.
MessagingException
protected Folder[] filterSubscribedGroups(String pattern) throws MessagingException
pattern
- The selection pattern.
MessagingException
protected String getGroupName(String response)
response
- The response string.
public int getType() throws MessagingException
getType
in class NNTPFolder
MessagingException
public Folder getFolder(String name) throws MessagingException
getFolder
in class NNTPFolder
name
- The name of the requested folder.
MessagingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |