Class NNTPReply
java.lang.Object
org.apache.commons.net.nntp.NNTPReply
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNNTP reply code 230.static final intNNTP reply code 435.static final intNNTP reply code 240.static final intNNTP reply code 437.static final intNNTP reply code 222.static final intNNTP reply code 220.static final intNNTP reply code 221.static final intNNTP reply code 223.static final intNNTP reply code 235.static final intNNTP reply code 281.static final intNNTP reply code 482.static final intNNTP reply code 480.static final intNNTP reply code 205.static final intNNTP reply code 500.static final intNNTP reply code 501.static final intNNTP reply code 199.static final intNNTP reply code 211.static final intNNTP reply code 100.static final intNNTP reply code 381.static final intNNTP reply code 231.static final intNNTP reply code 420.static final intNNTP reply code 412.static final intNNTP reply code 421.static final intNNTP reply code 422.static final intNNTP reply code 430.static final intNNTP reply code 423.static final intNNTP reply code 411.static final intNNTP reply code 502.static final intNNTP reply code 441.static final intNNTP reply code 440.static final intNNTP reply code 503.static final intNNTP reply code 340.static final intNNTP reply code 335.static final intNNTP reply code 200.static final intNNTP reply code 201.static final intNNTP reply code 400.static final intNNTP reply code 202.static final intNNTP reply code 436. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisInformational(int reply) Tests if a reply code is an informational response.static booleanisNegativePermanent(int reply) Tests if a reply code is a negative permanent response.static booleanisNegativeTransient(int reply) Tests if a reply code is a negative transient response.static booleanisPositiveCompletion(int reply) Tests if a reply code is a positive completion response.static booleanisPositiveIntermediate(int reply) Tests if a reply code is a positive intermediate response.
-
Field Details
-
HELP_TEXT_FOLLOWS
-
DEBUG_OUTPUT
-
SERVER_READY_POSTING_ALLOWED
-
SERVER_READY_POSTING_NOT_ALLOWED
-
SLAVE_STATUS_NOTED
-
CLOSING_CONNECTION
-
GROUP_SELECTED
-
ARTICLE_RETRIEVED_HEAD_AND_BODY_FOLLOW
-
ARTICLE_RETRIEVED_HEAD_FOLLOWS
-
ARTICLE_RETRIEVED_BODY_FOLLOWS
-
ARTICLE_RETRIEVED_REQUEST_TEXT_SEPARATELY
-
ARTICLE_LIST_BY_MESSAGE_ID_FOLLOWS
-
NEW_NEWSGROUP_LIST_FOLLOWS
-
ARTICLE_TRANSFERRED_OK
-
ARTICLE_POSTED_OK
-
AUTHENTICATION_ACCEPTED
-
SEND_ARTICLE_TO_TRANSFER
-
SEND_ARTICLE_TO_POST
-
MORE_AUTH_INFO_REQUIRED
-
SERVICE_DISCONTINUED
-
NO_SUCH_NEWSGROUP
-
NO_NEWSGROUP_SELECTED
-
NO_CURRENT_ARTICLE_SELECTED
-
NO_NEXT_ARTICLE
-
NO_PREVIOUS_ARTICLE
-
NO_SUCH_ARTICLE_NUMBER
-
NO_SUCH_ARTICLE_FOUND
-
ARTICLE_NOT_WANTED
-
TRANSFER_FAILED
-
ARTICLE_REJECTED
-
POSTING_NOT_ALLOWED
-
POSTING_FAILED
-
AUTHENTICATION_REQUIRED
NNTP reply code 480.- Since:
- 2.2 - corrected value to 480
- See Also:
-
AUTHENTICATION_REJECTED
-
COMMAND_NOT_RECOGNIZED
-
COMMAND_SYNTAX_ERROR
-
PERMISSION_DENIED
-
PROGRAM_FAULT
-
-
Method Details
-
isInformational
Tests 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.- Returns:
- True if a reply code is an informational response, false if not.
-
isNegativePermanent
Tests 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.- Returns:
- True if a reply code is a negative permanent response, false if not.
-
isNegativeTransient
Tests 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.- Returns:
- True if a reply code is a negative transient response, false if not.
-
isPositiveCompletion
Tests 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.- Returns:
- True if a reply code is a positive completion response, false if not.
-
isPositiveIntermediate
Tests 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 multipart 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.- Returns:
- True if a reply code is a positive intermediate response, false if not.
-