|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.brains2b.coffee.plugin.search.QueryMessage
public class QueryMessage
Local Message for storing Query definitions of NewsSearch
Field Summary | |
---|---|
static int |
QUERY
|
Constructor Summary | |
---|---|
QueryMessage()
Constructor |
Method Summary | |
---|---|
void |
addArticle(Article a)
add an Article which was found as a result of this Query |
void |
addFilter(MessageFilter filter)
add a Filter to this Query |
void |
addHeader(int id,
java.lang.String s)
|
void |
addLine(java.lang.String s)
|
void |
addNewsGroup(NewsGroup group)
|
void |
endMessage()
|
java.util.List<Article> |
getArticles()
get a List of Articles which were found by this Query |
java.util.List |
getFilters()
get a List of Filters making up this query |
int |
getFrequency()
|
java.lang.String |
getId()
|
java.lang.String |
getMimeType()
|
int |
getNewMessages()
|
java.util.List |
getNewsgroups()
get a List of Newsgroups this Query should search in |
int |
getSize()
|
int |
getType()
|
boolean |
hasContent()
|
boolean |
isHeaderSet()
|
void |
setArticles(java.util.List articles)
set a List of Articles as result for this Query |
void |
setFilters(java.util.List filters)
set a List of Filters making up this query |
void |
setFrequency(int frequency)
|
void |
setId(java.lang.String id)
|
void |
setNewsgroups(java.util.List newsgroups)
set a List of Newsgroups this Query should search in |
java.lang.String |
toString()
|
void |
writeMessage(org.brains2b.saxo.SAXWriter sw)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int QUERY
Constructor Detail |
---|
public QueryMessage()
Method Detail |
---|
public java.lang.String getId()
getId
in interface NNTPMessage
public int getSize()
getSize
in interface NNTPMessage
public int getType()
getType
in interface NNTPMessage
public boolean hasContent()
hasContent
in interface NNTPMessage
public boolean isHeaderSet()
isHeaderSet
in interface NNTPMessage
public void writeMessage(org.brains2b.saxo.SAXWriter sw) throws org.xml.sax.SAXException
writeMessage
in interface NNTPMessage
org.xml.sax.SAXException
public java.util.List getFilters()
MessageFilter
public void setFilters(java.util.List filters)
filters
- List, list of MessageFilter
public void addFilter(MessageFilter filter)
filter
- MessageFilterpublic java.util.List getNewsgroups()
NewsGroup
public void setNewsgroups(java.util.List newsgroups)
newsgroups
- List, list of NewsGroup
public void addNewsGroup(NewsGroup group)
public void setId(java.lang.String id)
public java.lang.String toString()
toString
in class java.lang.Object
public void addArticle(Article a)
a
- Articlepublic java.util.List<Article> getArticles()
Article
public void setArticles(java.util.List articles)
articles
- List, list of Article
public java.lang.String getMimeType()
getMimeType
in interface MimeType
public int getFrequency()
public void setFrequency(int frequency)
public void addHeader(int id, java.lang.String s)
addHeader
in interface NNTPMessage
public void addLine(java.lang.String s)
addLine
in interface NNTPMessage
public void endMessage()
endMessage
in interface NNTPMessage
public int getNewMessages()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |