Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.nntp
Interface NNTPResponse

All Known Implementing Classes:
NewNewsResponse, NewsGroupListResponse, NewsGroupSelectedResponse, NNTPDateResponse, NNTPResponseBuffer, StaticNNTPResponse, XHDRResponse, XOverResponse

public interface NNTPResponse

A standard NNTP response contains a numeric response code, optional line text and is terminated by a CR-LF pair. Following the response line, some "multi-line commands" will also include several other CR-LF terminated lines of response, followeod by a CR-LF.CR-LF terminator. All lines in a multi-line response that begins with a single dot, MUST be escaped by substituting the first dot with two dots.


Field Summary
static java.lang.String DOT_TERMINATOR
          NNTP multi-line dot terminator.
static java.lang.String ENDLINE
          NNTP end line.
 
Method Summary
 int getValue()
          Returns the int value associated with the response.
 void send(Connection con)
          Sends the response.
 

Field Detail

ENDLINE

static final java.lang.String ENDLINE
NNTP end line.

See Also:
Constant Field Values

DOT_TERMINATOR

static final java.lang.String DOT_TERMINATOR
NNTP multi-line dot terminator.

See Also:
Constant Field Values
Method Detail

getValue

int getValue()
Returns the int value associated with the response.

Returns:
the int value of the enum.

send

void send(Connection con)
          throws java.io.IOException

Sends the response.

Throws:
java.io.IOException

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.