Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.nntp
Class NewNewsResponse

java.lang.Object
  extended by com.jivesoftware.forum.nntp.NNTPResponseBuffer
      extended by com.jivesoftware.forum.nntp.NewNewsResponse
All Implemented Interfaces:
NNTPResponse

public class NewNewsResponse
extends NNTPResponseBuffer

Response for the NEWNEWS RFC977 command. The response is essentially a list of the message IDs of the articles in a given iterator. The iterator is generated by the NNTPParser based on the command query.


Field Summary
 
Fields inherited from interface com.jivesoftware.forum.nntp.NNTPResponse
DOT_TERMINATOR, ENDLINE
 
Method Summary
static NNTPResponse getList(Connection connection, java.util.Iterator articleIter)
          Create a response containing the articles in the given iterator.
 
Methods inherited from class com.jivesoftware.forum.nntp.NNTPResponseBuffer
append, appendBulkText, appendLine, appendParameter, appendXParameter, close, endLine, flush, getValue, send
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getList

public static NNTPResponse getList(Connection connection,
                                   java.util.Iterator articleIter)
                            throws java.io.IOException
Create a response containing the articles in the given iterator.

Parameters:
articleIter - an iterator over Article objects that should be included in the response.
connection - the connection this responder uses for sending response.
Throws:
java.io.IOException - if there is a problem sending the response to the requestor.

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.