org.apache.commons.net.nntp
public class Article extends Object implements Threadable
| 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. replies to) |
| 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() |
Parameters: name the header name val the header value
Parameters: msgId
Returns: an array of message-ids
Parameters: article the root of the article 'tree' depth the current tree depth