gnu.inet.nntp

Interface NNTPConstants

Known Implementing Classes:
NNTPConnection

public interface NNTPConstants

NNTP status response codes.
Author:
Chris Burdess

Field Summary

static String
ARTICLE
static short
ARTICLE_FOLLOWS
Indicates that the article has been retrieved.
static short
ARTICLE_NOT_WANTED
Indicates that the server does not want the specified article.
static short
ARTICLE_NOT_WANTED_VIA_TAKETHIS
Indicates that the server already has the specified article, and therefore doesn't want it sent using TAKETHIS.
static short
ARTICLE_POSTED
Indicates that the article was successfully posted.
static short
ARTICLE_REJECTED
Indicates that the specified article was rejected.
static short
ARTICLE_RETRIEVED
Indicates that the article has been retrieved.
static short
ARTICLE_TRANSFERRED
Indicates that the article was correctly transferred.
static short
ARTICLE_TRANSFERRED_OK
Indicates that the server accepted the article transferred by a TAKETHIS command.
static short
ARTICLE_TRANSFER_FAILED
Indicates that an article transferred by a TAKETHIS command failed.
static String
AUTHINFO_GENERIC
static short
AUTHINFO_OK
Indicates that AUTHINFO authentication was successful.
static String
AUTHINFO_PASS
static short
AUTHINFO_REJECTED
Indicates the the authentication information supplied was not accepted by the server.
static String
AUTHINFO_SIMPLE
static short
AUTHINFO_SIMPLE_DENIED
Indicates an authentication failure using AUTHINFO SIMPLE.
static short
AUTHINFO_SIMPLE_OK
Indicates success of an AUTHINFO SIMPLE transaction.
static short
AUTHINFO_SIMPLE_REQUIRED
Indicates that authentication via the AUTHINFO SIMPLE strategy is required.
static String
AUTHINFO_USER
static String
BODY
static short
BODY_FOLLOWS
Indicates that the article has been retrieved.
static String
CHECK
static short
CLOSING_CONNECTION
Indicates that the server is closing the connection.
static short
COMMAND_NOT_RECOGNIZED
Indicates that the command sent by the client was not understood by the server.
static String
DATE
static short
DATE_OK
Indicates a DATE response.
static String
GROUP
static short
GROUP_SELECTED
Indicates that the newsgroup was successfully selected.
static String
HEAD
static short
HEAD_FOLLOWS
Indicates that the article has been retrieved.
static String
HELP
static short
HELP_TEXT
Indicates a line of help text.
static String
IHAVE
static short
INTERNAL_ERROR
Indicates that the server was unable to perform the command due to an internal error.
static String
LAST
static String
LIST
static String
LISTGROUP
static String
LIST_ACTIVE
static String
LIST_ACTIVE_TIMES
static String
LIST_DISTRIBUTIONS
static String
LIST_DISTRIB_PATS
static short
LIST_FOLLOWS
Indicates that a list of valid newsgroups follows.
static String
LIST_NEWSGROUPS
static String
LIST_OVERVIEW_FMT
static String
LIST_SUBSCRIPTIONS
static String
MODE_READER
static String
MODE_STREAM
static String
NEWGROUPS
static short
NEWGROUPS_LIST_FOLLOWS
Indicates that a list of new newsgroups follows.
static String
NEWNEWS
static short
NEWNEWS_LIST_FOLLOWS
Indicates that a list of new articles by message-id follows.
static String
NEXT
static short
NO_ARTICLE_SELECTED
Indicates that no article has been selected.
static short
NO_GROUP_SELECTED
Indicates that no newsgroup has been selected.
static short
NO_NEXT_ARTICLE
Indicates that there is no next article in this newsgroup.
static short
NO_POSTING_ALLOWED
Indicates that the server is ready but posting is not allowed.
static short
NO_PREVIOUS_ARTICLE
Indicates that there is no previous article in this newsgroup.
static short
NO_SUCH_ARTICLE
Indicates that the specified article could not be found.
static short
NO_SUCH_ARTICLE_NUMBER
Indicates that no article with the specified number exists in this newsgroup.
static short
NO_SUCH_GROUP
Indicates that no such newsgroup exists.
static short
OVERVIEW_FOLLOWS
Indicates that a listing of overview information follows.
static short
PERMISSION_DENIED
Indicates that access restrictions deny permission to execute the command sent by the client.
static String
POST
static short
POSTING_ALLOWED
Indicates that the server is ready and posting is allowed.
static short
POSTING_FAILED
Indicates that posting of the article failed.
static short
POSTING_NOT_ALLOWED
Indicates that posting is not allowed.
static String
QUIT
static short
SEND_ARTICLE
Indicates that the article to be posted should be sent by the client.
static short
SEND_ARTICLE_VIA_TAKETHIS
Indicates that the server does not have the specified article and would like it to be transferred via TAKETHIS.
static short
SEND_AUTHINFOPASS
Indicates that the server is ready to accept the AUTHINFO password.
static short
SEND_AUTHINFO_SIMPLE
Instructs the client to send a username/password pair according to the AUTHINFO SIMPLE specification.
static short
SEND_TRANSFER_ARTICLE
Indicates that the article to be transferred should be sent by the client.
static short
SERVICE_DISCONTINUED
Indicates that the service has been discontinued.
static String
SLAVE
static short
SLAVE_ACKNOWLEDGED
Indicates that the server has noted the slave status of the connection.
static String
STAT
static short
STREAMING_OK
Indicates that the server has accepted streaming mode.
static short
SYNTAX_ERROR
Indicates that the command sent by the client was not a valid NNTP command.
static String
TAKETHIS
static short
TRANSFER_FAILED
Indicates that transfer of the specified article failed.
static short
TRANSFER_PERMISSION_DENIED
Indicates that the client does not have the appropriate authorization to transfer an article.
static short
TRY_AGAIN_LATER
Indicates that the server is not currently in a state to accept an article, but may become so at a later stage.
static String
XGTITLE
static short
XGTITLE_LIST_FOLLOWS
Indicates that an XGTITLE listing follows.
static String
XHDR
static String
XINDEX
static String
XOVER
static String
XPAT
static String
XPATH
static String
XREPLIC
static String
XROVER

Field Details

ARTICLE

public static final String ARTICLE

ARTICLE_FOLLOWS

public static final short ARTICLE_FOLLOWS
Indicates that the article has been retrieved. The head and body of the article follow.
Field Value:
220

ARTICLE_NOT_WANTED

public static final short ARTICLE_NOT_WANTED
Indicates that the server does not want the specified article. The client should not send the article.
Field Value:
435

ARTICLE_NOT_WANTED_VIA_TAKETHIS

public static final short ARTICLE_NOT_WANTED_VIA_TAKETHIS
Indicates that the server already has the specified article, and therefore doesn't want it sent using TAKETHIS.
Field Value:
438

ARTICLE_POSTED

public static final short ARTICLE_POSTED
Indicates that the article was successfully posted.
Field Value:
240

ARTICLE_REJECTED

public static final short ARTICLE_REJECTED
Indicates that the specified article was rejected. The client should not attempt to send the article again.
Field Value:
437

ARTICLE_RETRIEVED

public static final short ARTICLE_RETRIEVED
Indicates that the article has been retrieved. The text of the article must be requested separately.
Field Value:
223

ARTICLE_TRANSFERRED

public static final short ARTICLE_TRANSFERRED
Indicates that the article was correctly transferred.
Field Value:
235

ARTICLE_TRANSFERRED_OK

public static final short ARTICLE_TRANSFERRED_OK
Indicates that the server accepted the article transferred by a TAKETHIS command.
Field Value:
239

ARTICLE_TRANSFER_FAILED

public static final short ARTICLE_TRANSFER_FAILED
Indicates that an article transferred by a TAKETHIS command failed.
Field Value:
439

AUTHINFO_GENERIC

public static final String AUTHINFO_GENERIC

AUTHINFO_OK

public static final short AUTHINFO_OK
Indicates that AUTHINFO authentication was successful.
Field Value:
281

AUTHINFO_PASS

public static final String AUTHINFO_PASS

AUTHINFO_REJECTED

public static final short AUTHINFO_REJECTED
Indicates the the authentication information supplied was not accepted by the server.
Field Value:
482

AUTHINFO_SIMPLE

public static final String AUTHINFO_SIMPLE

AUTHINFO_SIMPLE_DENIED

public static final short AUTHINFO_SIMPLE_DENIED
Indicates an authentication failure using AUTHINFO SIMPLE.
Field Value:
452

AUTHINFO_SIMPLE_OK

public static final short AUTHINFO_SIMPLE_OK
Indicates success of an AUTHINFO SIMPLE transaction.
Field Value:
350

AUTHINFO_SIMPLE_REQUIRED

public static final short AUTHINFO_SIMPLE_REQUIRED
Indicates that authentication via the AUTHINFO SIMPLE strategy is required.
Field Value:
450

AUTHINFO_USER

public static final String AUTHINFO_USER

BODY

public static final String BODY

BODY_FOLLOWS

public static final short BODY_FOLLOWS
Indicates that the article has been retrieved. The body of the article follows.
Field Value:
222

CHECK

public static final String CHECK

CLOSING_CONNECTION

public static final short CLOSING_CONNECTION
Indicates that the server is closing the connection.
Field Value:
205

COMMAND_NOT_RECOGNIZED

public static final short COMMAND_NOT_RECOGNIZED
Indicates that the command sent by the client was not understood by the server.
Field Value:
500

DATE

public static final String DATE

DATE_OK

public static final short DATE_OK
Indicates a DATE response.
Field Value:
111

GROUP

public static final String GROUP

GROUP_SELECTED

public static final short GROUP_SELECTED
Indicates that the newsgroup was successfully selected. Format of the message is "n f l s xxx" (n = estimated number of articles in group, f = first article number in the group, l = last article number in the group, s = name of the group.)
Field Value:
211

HEAD

public static final String HEAD

HEAD_FOLLOWS

public static final short HEAD_FOLLOWS
Indicates that the article has been retrieved. The head of the article follows.
Field Value:
221

HELP

public static final String HELP

HELP_TEXT

public static final short HELP_TEXT
Indicates a line of help text.
Field Value:
100

IHAVE

public static final String IHAVE

INTERNAL_ERROR

public static final short INTERNAL_ERROR
Indicates that the server was unable to perform the command due to an internal error.
Field Value:
503

LAST

public static final String LAST

LIST

public static final String LIST

LISTGROUP

public static final String LISTGROUP

LIST_ACTIVE

public static final String LIST_ACTIVE

LIST_ACTIVE_TIMES

public static final String LIST_ACTIVE_TIMES

LIST_DISTRIBUTIONS

public static final String LIST_DISTRIBUTIONS

LIST_DISTRIB_PATS

public static final String LIST_DISTRIB_PATS

LIST_FOLLOWS

public static final short LIST_FOLLOWS
Indicates that a list of valid newsgroups follows. The format of each following line is "g l f p" (g = newsgroup name, l = last article number in group, f = first article number in group, p = 'y' if posting to the group is allowed, 'n' otherwise)
Field Value:
215

LIST_NEWSGROUPS

public static final String LIST_NEWSGROUPS

LIST_OVERVIEW_FMT

public static final String LIST_OVERVIEW_FMT

LIST_SUBSCRIPTIONS

public static final String LIST_SUBSCRIPTIONS

MODE_READER

public static final String MODE_READER

MODE_STREAM

public static final String MODE_STREAM

NEWGROUPS

public static final String NEWGROUPS

NEWGROUPS_LIST_FOLLOWS

public static final short NEWGROUPS_LIST_FOLLOWS
Indicates that a list of new newsgroups follows. This code is issued following a successful NEWGROUPS command. The format of the listing is the same as for code 215 (list follows).
Field Value:
231

NEWNEWS

public static final String NEWNEWS

NEWNEWS_LIST_FOLLOWS

public static final short NEWNEWS_LIST_FOLLOWS
Indicates that a list of new articles by message-id follows.
Field Value:
230

NO_ARTICLE_SELECTED

public static final short NO_ARTICLE_SELECTED
Indicates that no article has been selected.
Field Value:
420

NO_GROUP_SELECTED

public static final short NO_GROUP_SELECTED
Indicates that no newsgroup has been selected.
Field Value:
412

NO_NEXT_ARTICLE

public static final short NO_NEXT_ARTICLE
Indicates that there is no next article in this newsgroup.
Field Value:
421

NO_POSTING_ALLOWED

public static final short NO_POSTING_ALLOWED
Indicates that the server is ready but posting is not allowed.
Field Value:
201

NO_PREVIOUS_ARTICLE

public static final short NO_PREVIOUS_ARTICLE
Indicates that there is no previous article in this newsgroup.
Field Value:
422

NO_SUCH_ARTICLE

public static final short NO_SUCH_ARTICLE
Indicates that the specified article could not be found.
Field Value:
430

NO_SUCH_ARTICLE_NUMBER

public static final short NO_SUCH_ARTICLE_NUMBER
Indicates that no article with the specified number exists in this newsgroup.
Field Value:
423

NO_SUCH_GROUP

public static final short NO_SUCH_GROUP
Indicates that no such newsgroup exists.
Field Value:
411

OVERVIEW_FOLLOWS

public static final short OVERVIEW_FOLLOWS
Indicates that a listing of overview information follows.
Field Value:
224

PERMISSION_DENIED

public static final short PERMISSION_DENIED
Indicates that access restrictions deny permission to execute the command sent by the client.
Field Value:
502

POST

public static final String POST

POSTING_ALLOWED

public static final short POSTING_ALLOWED
Indicates that the server is ready and posting is allowed.
Field Value:
200

POSTING_FAILED

public static final short POSTING_FAILED
Indicates that posting of the article failed. The client may attempt to post the article again.
Field Value:
441

POSTING_NOT_ALLOWED

public static final short POSTING_NOT_ALLOWED
Indicates that posting is not allowed.
Field Value:
440

QUIT

public static final String QUIT

SEND_ARTICLE

public static final short SEND_ARTICLE
Indicates that the article to be posted should be sent by the client. It should end with a CRLF-dot-CRLF sequence, i.e. a dot on a line by itself.
Field Value:
340

SEND_ARTICLE_VIA_TAKETHIS

public static final short SEND_ARTICLE_VIA_TAKETHIS
Indicates that the server does not have the specified article and would like it to be transferred via TAKETHIS.
Field Value:
238

SEND_AUTHINFOPASS

public static final short SEND_AUTHINFOPASS
Indicates that the server is ready to accept the AUTHINFO password.
Field Value:
381

SEND_AUTHINFO_SIMPLE

public static final short SEND_AUTHINFO_SIMPLE
Instructs the client to send a username/password pair according to the AUTHINFO SIMPLE specification.
Field Value:
350

SEND_TRANSFER_ARTICLE

public static final short SEND_TRANSFER_ARTICLE
Indicates that the article to be transferred should be sent by the client. It should end with a CRLF-dot-CRLF sequence, i.e. a dot on a line by itself.
Field Value:
335

SERVICE_DISCONTINUED

public static final short SERVICE_DISCONTINUED
Indicates that the service has been discontinued.
Field Value:
400

SLAVE

public static final String SLAVE

SLAVE_ACKNOWLEDGED

public static final short SLAVE_ACKNOWLEDGED
Indicates that the server has noted the slave status of the connection.
Field Value:
202

STAT

public static final String STAT

STREAMING_OK

public static final short STREAMING_OK
Indicates that the server has accepted streaming mode.
Field Value:
203

SYNTAX_ERROR

public static final short SYNTAX_ERROR
Indicates that the command sent by the client was not a valid NNTP command.
Field Value:
501

TAKETHIS

public static final String TAKETHIS

TRANSFER_FAILED

public static final short TRANSFER_FAILED
Indicates that transfer of the specified article failed. The client should try to send the article again later.
Field Value:
436

TRANSFER_PERMISSION_DENIED

public static final short TRANSFER_PERMISSION_DENIED
Indicates that the client does not have the appropriate authorization to transfer an article.
Field Value:
480

TRY_AGAIN_LATER

public static final short TRY_AGAIN_LATER
Indicates that the server is not currently in a state to accept an article, but may become so at a later stage.
Field Value:
431

XGTITLE

public static final String XGTITLE

XGTITLE_LIST_FOLLOWS

public static final short XGTITLE_LIST_FOLLOWS
Indicates that an XGTITLE listing follows.
Field Value:
481

XHDR

public static final String XHDR

XINDEX

public static final String XINDEX

XOVER

public static final String XOVER

XPAT

public static final String XPAT

XPATH

public static final String XPATH

XREPLIC

public static final String XREPLIC

XROVER

public static final String XROVER

© Copyright 2003 The Free Software Foundation, all rights reserved