|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.net.nntp.Article
public class Article
This is a class that contains the basic state needed for message retrieval and threading.
With thanks to Jamie Zawinski
Field Summary | |
---|---|
Article |
kid
|
Article |
next
|
Constructor Summary | |
---|---|
Article()
|
Method Summary | |
---|---|
void |
addHeaderField(String name,
String val)
Adds an arbitrary header key and value to this message's header. |
void |
addReference(String msgId)
Adds a message-id to the list of messages that this message references (i.e. |
String |
getArticleId()
|
int |
getArticleNumber()
|
String |
getDate()
|
String |
getFrom()
|
String[] |
getReferences()
Returns the MessageId references as an array of Strings |
String |
getSubject()
|
boolean |
isDummy()
|
Threadable |
makeDummy()
|
String |
messageThreadId()
|
String[] |
messageThreadReferences()
|
static void |
printThread(Article article,
int depth)
Recursive method that traverses a pre-threaded graph (or tree) of connected Article objects and prints them out. |
void |
setArticleId(String string)
|
void |
setArticleNumber(int i)
|
void |
setChild(Threadable child)
|
void |
setDate(String string)
|
void |
setFrom(String string)
|
void |
setNext(Threadable next)
|
void |
setSubject(String string)
|
String |
simplifiedSubject()
|
boolean |
subjectIsReply()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Article kid
public Article next
Constructor Detail |
---|
public Article()
Method Detail |
---|
public void addHeaderField(String name, String val)
name
- the header nameval
- the header valuepublic void addReference(String msgId)
msgId
- public String[] getReferences()
public static void printThread(Article article, int depth)
article
- the root of the article 'tree'depth
- the current tree depthpublic String getArticleId()
public int getArticleNumber()
public String getDate()
public String getFrom()
public String getSubject()
public void setArticleId(String string)
public void setArticleNumber(int i)
public void setDate(String string)
public void setFrom(String string)
public void setSubject(String string)
public boolean isDummy()
isDummy
in interface Threadable
public String messageThreadId()
messageThreadId
in interface Threadable
public String[] messageThreadReferences()
messageThreadReferences
in interface Threadable
public String simplifiedSubject()
simplifiedSubject
in interface Threadable
public boolean subjectIsReply()
subjectIsReply
in interface Threadable
public void setChild(Threadable child)
setChild
in interface Threadable
public void setNext(Threadable next)
setNext
in interface Threadable
public Threadable makeDummy()
makeDummy
in interface Threadable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |