|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.forum.nntp.ArticleResponder
public class ArticleResponder
Creates a response to a stanard article request.
Responses are one of ARTICLE, HEAD, BODY, or STAT indicated by which parts of the artice to include:
| Include Headers | Include body | Type |
|---|---|---|
| true | true | ARTICLE |
| true | false | HEAD |
| false | true | BODY |
| false | false | STAT |
| Constructor Summary | |
|---|---|
ArticleResponder(Connection conn)
Creates a new article response (cannot be instantiated directly). |
|
| Method Summary | |
|---|---|
NNTPResponse |
sendArticle(ArticleCommand cmd)
Create an ARTICLE command response. |
NNTPResponse |
sendBody(ArticleCommand cmd)
Create a BODY command response. |
NNTPResponse |
sendHead(ArticleCommand cmd)
Create a HEAD command response. |
NNTPResponse |
sendStat(ArticleCommand cmd)
Generates a STAT response using the command's article number and located article. |
NNTPResponse |
sendStat(long number,
Article art)
Create a STAT command response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArticleResponder(Connection conn)
Creates a new article response (cannot be instantiated directly).
conn - the connection this responder will send the response| Method Detail |
|---|
public NNTPResponse sendStat(ArticleCommand cmd)
throws java.io.IOException
cmd - The command to use in generating a response
java.io.IOException - if writing to the underlying connection failed
public NNTPResponse sendStat(long number,
Article art)
throws java.io.IOException
number - the number of the article selected or -1 if no relevant number exists.art - the article retrieved.
java.io.IOException - if writing to the underlying connection failed.
public NNTPResponse sendBody(ArticleCommand cmd)
throws java.io.IOException
cmd - The command that retrieved the article
java.io.IOException - if writing to the underlying connection failed
public NNTPResponse sendHead(ArticleCommand cmd)
throws java.io.IOException
cmd - The command that retrieved the article
java.io.IOException - if writing to the underlying connection failed
public NNTPResponse sendArticle(ArticleCommand cmd)
throws java.io.IOException
cmd - the command that retrieved the article.
java.io.IOException - if writing to the underlying connection failed.
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||