| |
|
| java.lang.Object org.apache.commons.net.nntp.NNTPReply
NNTPReply | final public class NNTPReply (Code) | | NNTPReply stores a set of constants for NNTP reply codes. To interpret
the meaning of the codes, familiarity with RFC 977 is assumed.
The mnemonic constant names are transcriptions from the code descriptions
of RFC 977. For those who think in terms of the actual reply code values,
a set of CODE_NUM constants are provided where NUM is the numerical value
of the code.
author: Daniel F. Savarese |
Method Summary | |
public static boolean | isInformational(int reply) Determine if a reply code is an informational response. | public static boolean | isNegativePermanent(int reply) Determine if a reply code is a negative permanent response. | public static boolean | isNegativeTransient(int reply) Determine if a reply code is a negative transient response. | public static boolean | isPositiveCompletion(int reply) Determine if a reply code is a positive completion response. | public static boolean | isPositiveIntermediate(int reply) Determine if a reply code is a positive intermediate response. |
ARTICLE_LIST_BY_MESSAGE_ID_FOLLOWS | final public static int ARTICLE_LIST_BY_MESSAGE_ID_FOLLOWS(Code) | | |
ARTICLE_NOT_WANTED | final public static int ARTICLE_NOT_WANTED(Code) | | |
ARTICLE_POSTED_OK | final public static int ARTICLE_POSTED_OK(Code) | | |
ARTICLE_REJECTED | final public static int ARTICLE_REJECTED(Code) | | |
ARTICLE_RETRIEVED_BODY_FOLLOWS | final public static int ARTICLE_RETRIEVED_BODY_FOLLOWS(Code) | | |
ARTICLE_RETRIEVED_HEAD_AND_BODY_FOLLOW | final public static int ARTICLE_RETRIEVED_HEAD_AND_BODY_FOLLOW(Code) | | |
ARTICLE_RETRIEVED_HEAD_FOLLOWS | final public static int ARTICLE_RETRIEVED_HEAD_FOLLOWS(Code) | | |
ARTICLE_RETRIEVED_REQUEST_TEXT_SEPARATELY | final public static int ARTICLE_RETRIEVED_REQUEST_TEXT_SEPARATELY(Code) | | |
ARTICLE_TRANSFERRED_OK | final public static int ARTICLE_TRANSFERRED_OK(Code) | | |
AUTHENTICATION_ACCEPTED | final public static int AUTHENTICATION_ACCEPTED(Code) | | |
AUTHENTICATION_REJECTED | final public static int AUTHENTICATION_REJECTED(Code) | | |
AUTHENTICATION_REQUIRED | final public static int AUTHENTICATION_REQUIRED(Code) | | |
CLOSING_CONNECTION | final public static int CLOSING_CONNECTION(Code) | | |
CODE_100 | final public static int CODE_100(Code) | | |
CODE_199 | final public static int CODE_199(Code) | | |
CODE_200 | final public static int CODE_200(Code) | | |
CODE_201 | final public static int CODE_201(Code) | | |
CODE_202 | final public static int CODE_202(Code) | | |
CODE_205 | final public static int CODE_205(Code) | | |
CODE_211 | final public static int CODE_211(Code) | | |
CODE_215 | final public static int CODE_215(Code) | | |
CODE_220 | final public static int CODE_220(Code) | | |
CODE_221 | final public static int CODE_221(Code) | | |
CODE_222 | final public static int CODE_222(Code) | | |
CODE_223 | final public static int CODE_223(Code) | | |
CODE_230 | final public static int CODE_230(Code) | | |
CODE_231 | final public static int CODE_231(Code) | | |
CODE_235 | final public static int CODE_235(Code) | | |
CODE_240 | final public static int CODE_240(Code) | | |
CODE_281 | final public static int CODE_281(Code) | | |
CODE_335 | final public static int CODE_335(Code) | | |
CODE_340 | final public static int CODE_340(Code) | | |
CODE_381 | final public static int CODE_381(Code) | | |
CODE_400 | final public static int CODE_400(Code) | | |
CODE_408 | final public static int CODE_408(Code) | | |
CODE_411 | final public static int CODE_411(Code) | | |
CODE_412 | final public static int CODE_412(Code) | | |
CODE_420 | final public static int CODE_420(Code) | | |
CODE_421 | final public static int CODE_421(Code) | | |
CODE_422 | final public static int CODE_422(Code) | | |
CODE_423 | final public static int CODE_423(Code) | | |
CODE_430 | final public static int CODE_430(Code) | | |
CODE_435 | final public static int CODE_435(Code) | | |
CODE_436 | final public static int CODE_436(Code) | | |
CODE_437 | final public static int CODE_437(Code) | | |
CODE_440 | final public static int CODE_440(Code) | | |
CODE_441 | final public static int CODE_441(Code) | | |
CODE_482 | final public static int CODE_482(Code) | | |
CODE_500 | final public static int CODE_500(Code) | | |
CODE_501 | final public static int CODE_501(Code) | | |
CODE_502 | final public static int CODE_502(Code) | | |
CODE_503 | final public static int CODE_503(Code) | | |
COMMAND_NOT_RECOGNIZED | final public static int COMMAND_NOT_RECOGNIZED(Code) | | |
COMMAND_SYNTAX_ERROR | final public static int COMMAND_SYNTAX_ERROR(Code) | | |
DEBUG_OUTPUT | final public static int DEBUG_OUTPUT(Code) | | |
GROUP_SELECTED | final public static int GROUP_SELECTED(Code) | | |
HELP_TEXT_FOLLOWS | final public static int HELP_TEXT_FOLLOWS(Code) | | |
MORE_AUTH_INFO_REQUIRED | final public static int MORE_AUTH_INFO_REQUIRED(Code) | | |
NEW_NEWSGROUP_LIST_FOLLOWS | final public static int NEW_NEWSGROUP_LIST_FOLLOWS(Code) | | |
NO_CURRENT_ARTICLE_SELECTED | final public static int NO_CURRENT_ARTICLE_SELECTED(Code) | | |
NO_NEWSGROUP_SELECTED | final public static int NO_NEWSGROUP_SELECTED(Code) | | |
NO_NEXT_ARTICLE | final public static int NO_NEXT_ARTICLE(Code) | | |
NO_PREVIOUS_ARTICLE | final public static int NO_PREVIOUS_ARTICLE(Code) | | |
NO_SUCH_ARTICLE_FOUND | final public static int NO_SUCH_ARTICLE_FOUND(Code) | | |
NO_SUCH_ARTICLE_NUMBER | final public static int NO_SUCH_ARTICLE_NUMBER(Code) | | |
NO_SUCH_NEWSGROUP | final public static int NO_SUCH_NEWSGROUP(Code) | | |
PERMISSION_DENIED | final public static int PERMISSION_DENIED(Code) | | |
POSTING_FAILED | final public static int POSTING_FAILED(Code) | | |
POSTING_NOT_ALLOWED | final public static int POSTING_NOT_ALLOWED(Code) | | |
PROGRAM_FAULT | final public static int PROGRAM_FAULT(Code) | | |
SEND_ARTICLE_TO_POST | final public static int SEND_ARTICLE_TO_POST(Code) | | |
SEND_ARTICLE_TO_TRANSFER | final public static int SEND_ARTICLE_TO_TRANSFER(Code) | | |
SERVER_READY_POSTING_ALLOWED | final public static int SERVER_READY_POSTING_ALLOWED(Code) | | |
SERVER_READY_POSTING_NOT_ALLOWED | final public static int SERVER_READY_POSTING_NOT_ALLOWED(Code) | | |
SERVICE_DISCONTINUED | final public static int SERVICE_DISCONTINUED(Code) | | |
SLAVE_STATUS_NOTED | final public static int SLAVE_STATUS_NOTED(Code) | | |
TRANSFER_FAILED | final public static int TRANSFER_FAILED(Code) | | |
isInformational | public static boolean isInformational(int reply)(Code) | | Determine if a reply code is an informational response. All
codes beginning with a 1 are positive informational responses.
Informational responses are used to provide human readable
information such as help text.
Parameters: reply - The reply code to test. True if a reply code is an informational response, falseif not. |
isNegativePermanent | public static boolean isNegativePermanent(int reply)(Code) | | Determine if a reply code is a negative permanent response. All
codes beginning with a 5 are negative permanent responses.
The NNTP server will send a negative permanent response when
it does not implement a command, a command is incorrectly formatted,
or a serious program error occurs.
Parameters: reply - The reply code to test. True if a reply code is a negative permanent response, falseif not. |
isNegativeTransient | public static boolean isNegativeTransient(int reply)(Code) | | Determine if a reply code is a negative transient response. All
codes beginning with a 4 are negative transient responses.
The NNTP server will send a negative transient response on the
failure of a correctly formatted command that could not be performed
for some reason. For example, retrieving an article that does not
exist will result in a negative transient response.
Parameters: reply - The reply code to test. True if a reply code is a negative transient response, falseif not. |
isPositiveCompletion | public static boolean isPositiveCompletion(int reply)(Code) | | Determine if a reply code is a positive completion response. All
codes beginning with a 2 are positive completion responses.
The NNTP server will send a positive completion response on the final
successful completion of a command.
Parameters: reply - The reply code to test. True if a reply code is a postive completion response, falseif not. |
isPositiveIntermediate | public static boolean isPositiveIntermediate(int reply)(Code) | | Determine if a reply code is a positive intermediate response. All
codes beginning with a 3 are positive intermediate responses.
The NNTP server will send a positive intermediate response on the
successful completion of one part of a multi-part command or
sequence of commands. For example, after a successful POST command,
a positive intermediate response will be sent to indicate that the
server is ready to receive the article to be posted.
Parameters: reply - The reply code to test. True if a reply code is a postive intermediate response, falseif not. |
|
|
|