|
||||||||||
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.NNTPGroupFolder
public class NNTPGroupFolder
The NNTP implementation of the javax.mail.Folder Note that only INBOX is supported in NNTP
Folder
Field Summary | |
---|---|
protected int |
firstArticle
|
protected int |
lastArticle
|
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 |
NNTPGroupFolder(NNTPRootFolder parent,
NNTPStore store,
String name,
NNTPNewsrcGroup groupInfo)
Construct a "real" folder representing an NNTP news group. |
Method Summary | |
---|---|
void |
closeFolder()
Close the folder, which also clears out the article caches. |
boolean |
exists()
Test to see if this folder actually exists. |
void |
fetch(Message[] msgs,
FetchProfile fp)
|
Message |
getMessage(int msgNum)
Checks wether the message is in cache, if not will create a new message object and return it. |
Message[] |
getMessages()
Retrieve all articles in the group. |
boolean |
hasNewMessages()
Ping the NNTP server to check if a newsgroup has any new messages. |
boolean |
isSeen(int article)
Return the "seen" state for an article in a folder. |
boolean |
isSubscribed()
Return the subscription status of this folder. |
protected void |
openFolder()
Open the folder for use. |
void |
setSeen(int article,
boolean flag)
Set the seen state for an article in a folder. |
void |
setSubscribed(boolean flag)
Set or clear the subscription status of a file. |
Methods inherited from class org.apache.geronimo.javamail.store.nntp.NNTPFolder |
---|
appendMessages, checkClosed, checkOpen, close, create, delete, expunge, getFolder, getFullName, getMessageCount, getName, getParent, getPermanentFlags, getSeparator, getType, isOpen, list, listSubscribed, notifyMessageChangedListeners, open, renameTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int firstArticle
protected int lastArticle
Constructor Detail |
---|
protected NNTPGroupFolder(NNTPRootFolder parent, NNTPStore store, String name, NNTPNewsrcGroup groupInfo)
parent
- The parent root folder.store
- The Store this folder is attached to.name
- The folder name.groupInfo
- The newsrc group information attached to the newsrc database.
This contains subscription and article "SEEN" information.Method Detail |
---|
public boolean exists() throws MessagingException
exists
in class NNTPFolder
MessagingException
public boolean hasNewMessages() throws MessagingException
hasNewMessages
in class NNTPFolder
MessagingException
protected void openFolder() throws MessagingException
openFolder
in class NNTPFolder
MessagingException
public void closeFolder() throws MessagingException
closeFolder
in class NNTPFolder
MessagingException
public Message getMessage(int msgNum) throws MessagingException
getMessage
in class NNTPFolder
MessagingException
Folder.getMessage(int)
public Message[] getMessages() throws MessagingException
getMessages
in class Folder
MessagingException
public void fetch(Message[] msgs, FetchProfile fp) throws MessagingException
fetch
in class Folder
MessagingException
The JavaMail API recommends that this method be overrident to provide a
meaningfull implementation.
public boolean isSubscribed()
isSubscribed
in class NNTPFolder
public void setSubscribed(boolean flag)
setSubscribed
in class NNTPFolder
flag
- The new subscription state.public boolean isSeen(int article)
isSeen
in class NNTPFolder
article
- The article number.
public void setSeen(int article, boolean flag)
setSeen
in class NNTPFolder
article
- The article number.flag
- The new seen state.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |