|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.nntp.NntpNewsgroup
public class NntpNewsgroup
Implements methods for manipulating NNTP newsgroups. Note:
According to RFC 977, server is not required to return exact article count
in response to GROUP command. In addition, often NntpNewsgroup is created
from response to LIST command in which case article count is not returned
at all but can be estimated from FIRST and LAST fields. Thus, the article
count provided by this class should not be regarded as exact value.
Posting permissions can also be treated with suspicion as GROUP command
will not return any information regarding posting and LIST command returns
this information based on authentication at the moment of invoking LIST
command.
Method Summary | |
---|---|
int |
getArticleCount()
Gets estimated article count for this NntpNewsgroup . |
int |
getFirst()
Returns the value of FIRST field returned by LIST and GROUP commands. |
int |
getLast()
Returns the value of LAST field returned by LIST and GROUP commands. |
java.lang.String |
getName()
Gets name of this NntpNewsgroup . |
boolean |
getPostPermission()
Gets posting permissions for this NntpNewsgroup at time of retrieving newsgroup data. |
java.lang.String |
toString()
Gets string representation of newsgroup in format as expected by server when posting article. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String getName()
NntpNewsgroup
.
public int getFirst()
public int getLast()
public int getArticleCount()
NntpNewsgroup
.
public boolean getPostPermission()
true
if posting allowed, false
otherwisepublic java.lang.String toString()
toString
in class java.lang.Object
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |