| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| 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 
 
 
 Articlekid
           
 
 
 Articlenext
           
 
 
Constructor Summary 
 
Article()
           
 
 
Method Summary 
 
 
 voidaddHeaderField(String name,
                             String val)
          Adds an arbitrary header key and value to this message's header.
 
 
 voidaddReference(String msgId)
          Adds a message-id to the list of messages that this message references (i.e.
 
 
 StringgetArticleId()
           
 
 
 intgetArticleNumber()
           
 
 
 StringgetDate()
           
 
 
 StringgetFrom()
           
 
 
 String[]getReferences()
          Returns the MessageId references as an array of Strings
 
 
 StringgetSubject()
           
 
 
 booleanisDummy()
           
 
 
 ThreadablemakeDummy()
           
 
 
 StringmessageThreadId()
           
 
 
 String[]messageThreadReferences()
           
 
 
static voidprintThread(Article article,
                       int depth)
          Recursive method that traverses a pre-threaded graph (or tree) 
 of connected Article objects and prints them out.
 
 
 voidsetArticleId(String string)
           
 
 
 voidsetArticleNumber(int i)
           
 
 
 voidsetChild(Threadable child)
           
 
 
 voidsetDate(String string)
           
 
 
 voidsetFrom(String string)
           
 
 
 voidsetNext(Threadable next)
           
 
 
 voidsetSubject(String string)
           
 
 
 StringsimplifiedSubject()
           
 
 
 booleansubjectIsReply()
           
 
 
Methods inherited from class java.lang.Object 
 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Field Detail 
kid
public Article kid
next
public Article next
 
Constructor Detail 
Article
public Article()
 
Method Detail 
addHeaderField
public void addHeaderField(String name,
                           String val)
name - the header nameval - the header value
addReference
public void addReference(String msgId)
msgId - 
getReferences
public String[] getReferences()
printThread
public static void printThread(Article article,
                               int depth)
article - the root of the article 'tree'depth - the current tree depth
getArticleId
public String getArticleId()
getArticleNumber
public int getArticleNumber()
getDate
public String getDate()
getFrom
public String getFrom()
getSubject
public String getSubject()
setArticleId
public void setArticleId(String string)
setArticleNumber
public void setArticleNumber(int i)
setDate
public void setDate(String string)
setFrom
public void setFrom(String string)
setSubject
public void setSubject(String string)
isDummy
public boolean isDummy()
isDummy in interface Threadable
messageThreadId
public String messageThreadId()
messageThreadId in interface Threadable
messageThreadReferences
public String[] messageThreadReferences()
messageThreadReferences in interface Threadable
simplifiedSubject
public String simplifiedSubject()
simplifiedSubject in interface Threadable
subjectIsReply
public boolean subjectIsReply()
subjectIsReply in interface Threadable
setChild
public void setChild(Threadable child)
setChild in interface Threadable
setNext
public void setNext(Threadable next)
setNext in interface Threadable
makeDummy
public Threadable makeDummy()
makeDummy in interface Threadable
 
 
  
   
    Overview  
      Package  
    Class  
      Use  
      Tree  
      Deprecated  
      Index  
      Help  
  
 
 
 PREV CLASS 
 NEXT CLASS 
  FRAMES   
 NO FRAMES   
 
 
 
  SUMMARY: NESTED | FIELD | CONSTR | METHOD 
DETAIL: FIELD | CONSTR | METHOD 
Copyright © 1997-2008 The Apache Software Foundation. All Rights Reserved.