public class NNTPMessenger extends NNTPConnector
ARTICLE_ALL, ARTICLE_BODY, ARTICLE_HEADER, hostname, isConnected, maxArticle, password, port, timeout, uri, username| Constructor and Description |
|---|
NNTPMessenger(java.util.Map props)
Creates new NNTPMessenger
|
| Modifier and Type | Method and Description |
|---|---|
void |
fetch(XQueue xq)
It fetches new articles of a news group from the NNTP server and puts
them to the XQ.
|
java.lang.String |
getOperation() |
void |
list(XQueue xq)
It gets a JMS message from xq that contains a newsgroup name for listing
articles in it and gets the list via nntp.
|
void |
post(XQueue xq)
It gets a JMS Message from the XQueue and posts its content into the
NNTP server continuously.
|
void |
retrieve(XQueue xq)
It gets a JMS message from xq that contains the information about an
article to be retrieved and retrieves the article via nntp.
|
close, connect, getArticleInfo, getArticleInfo, getArticleInfo, getDate, getNNTPClient, getReplyString, getURI, isAllowedToPost, isConnected, main, nntpGet, nntpGet, nntpListArticles, nntpListGroups, nntpPost, nntpPost, reconnect, setNewsgrouppublic NNTPMessenger(java.util.Map props)
throws java.io.IOException
java.io.IOExceptionpublic void fetch(XQueue xq) throws java.io.IOException, javax.jms.JMSException
java.io.IOExceptionjavax.jms.JMSExceptionpublic void retrieve(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOExceptionTimeoutExceptionjavax.jms.JMSExceptionpublic void list(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOExceptionTimeoutExceptionjavax.jms.JMSExceptionpublic void post(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOExceptionTimeoutExceptionjavax.jms.JMSExceptionpublic java.lang.String getOperation()