ORO, Inc. Logo  All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.oroinc.net.nntp.NNTPReply

java.lang.Object
   |
   +----com.oroinc.net.nntp.NNTPReply

public final class NNTPReply
extends Object
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.

Copyright © 1997 Original Reusable Objects, Inc. All rights reserved.


Variable Index

 o ARTICLE_LIST_BY_MESSAGE_ID_FOLLOWS
 o ARTICLE_NOT_WANTED
 o ARTICLE_POSTED_OK
 o ARTICLE_REJECTED
 o ARTICLE_RETRIEVED_BODY_FOLLOWS
 o ARTICLE_RETRIEVED_HEAD_AND_BODY_FOLLOW
 o ARTICLE_RETRIEVED_HEAD_FOLLOWS
 o ARTICLE_RETRIEVED_REQUEST_TEXT_SEPARATELY
 o ARTICLE_TRANSFERRED_OK
 o CLOSING_CONNECTION
 o CODE_100
 o CODE_199
 o CODE_200
 o CODE_201
 o CODE_202
 o CODE_205
 o CODE_211
 o CODE_215
 o CODE_220
 o CODE_221
 o CODE_222
 o CODE_223
 o CODE_230
 o CODE_231
 o CODE_235
 o CODE_240
 o CODE_335
 o CODE_340
 o CODE_400
 o CODE_411
 o CODE_412
 o CODE_420
 o CODE_421
 o CODE_422
 o CODE_423
 o CODE_430
 o CODE_435
 o CODE_436
 o CODE_437
 o CODE_440
 o CODE_441
 o CODE_500
 o CODE_501
 o CODE_502
 o CODE_503
 o COMMAND_NOT_RECOGNIZED
 o COMMAND_SYNTAX_ERROR
 o DEBUG_OUTPUT
 o GROUP_SELECTED
 o HELP_TEXT_FOLLOWS
 o NEW_NEWSGROUP_LIST_FOLLOWS
 o NO_CURRENT_ARTICLE_SELECTED
 o NO_NEWSGROUP_SELECTED
 o NO_NEXT_ARTICLE
 o NO_PREVIOUS_ARTICLE
 o NO_SUCH_ARTICLE_FOUND
 o NO_SUCH_ARTICLE_NUMBER
 o NO_SUCH_NEWSGROUP
 o PERMISSION_DENIED
 o POSTING_FAILED
 o POSTING_NOT_ALLOWED
 o PROGRAM_FAULT
 o SEND_ARTICLE_TO_POST
 o SEND_ARTICLE_TO_TRANSFER
 o SERVER_READY_POSTING_ALLOWED
 o SERVER_READY_POSTING_NOT_ALLOWED
 o SERVICE_DISCONTINUED
 o SLAVE_STATUS_NOTED
 o TRANSFER_FAILED

Method Index

 o isInformational(int)
Determine if a reply code is an informational response.
 o isNegativePermanent(int)
Determine if a reply code is a negative permanent response.
 o isNegativeTransient(int)
Determine if a reply code is a negative transient response.
 o isPositiveCompletion(int)
Determine if a reply code is a positive completion response.
 o isPositiveIntermediate(int)
Determine if a reply code is a positive intermediate response.

Variables

 o CODE_100
 public static final int CODE_100
 o CODE_199
 public static final int CODE_199
 o CODE_200
 public static final int CODE_200
 o CODE_201
 public static final int CODE_201
 o CODE_202
 public static final int CODE_202
 o CODE_205
 public static final int CODE_205
 o CODE_211
 public static final int CODE_211
 o CODE_215
 public static final int CODE_215
 o CODE_220
 public static final int CODE_220
 o CODE_221
 public static final int CODE_221
 o CODE_222
 public static final int CODE_222
 o CODE_223
 public static final int CODE_223
 o CODE_230
 public static final int CODE_230
 o CODE_231
 public static final int CODE_231
 o CODE_235
 public static final int CODE_235
 o CODE_240
 public static final int CODE_240
 o CODE_335
 public static final int CODE_335
 o CODE_340
 public static final int CODE_340
 o CODE_400
 public static final int CODE_400
 o CODE_411
 public static final int CODE_411
 o CODE_412
 public static final int CODE_412
 o CODE_420
 public static final int CODE_420
 o CODE_421
 public static final int CODE_421
 o CODE_422
 public static final int CODE_422
 o CODE_423
 public static final int CODE_423
 o CODE_430
 public static final int CODE_430
 o CODE_435
 public static final int CODE_435
 o CODE_436
 public static final int CODE_436
 o CODE_437
 public static final int CODE_437
 o CODE_440
 public static final int CODE_440
 o CODE_441
 public static final int CODE_441
 o CODE_500
 public static final int CODE_500
 o CODE_501
 public static final int CODE_501
 o CODE_502
 public static final int CODE_502
 o CODE_503
 public static final int CODE_503
 o HELP_TEXT_FOLLOWS
 public static final int HELP_TEXT_FOLLOWS
 o DEBUG_OUTPUT
 public static final int DEBUG_OUTPUT
 o SERVER_READY_POSTING_ALLOWED
 public static final int SERVER_READY_POSTING_ALLOWED
 o SERVER_READY_POSTING_NOT_ALLOWED
 public static final int SERVER_READY_POSTING_NOT_ALLOWED
 o SLAVE_STATUS_NOTED
 public static final int SLAVE_STATUS_NOTED
 o CLOSING_CONNECTION
 public static final int CLOSING_CONNECTION
 o GROUP_SELECTED
 public static final int GROUP_SELECTED
 o ARTICLE_RETRIEVED_HEAD_AND_BODY_FOLLOW
 public static final int ARTICLE_RETRIEVED_HEAD_AND_BODY_FOLLOW
 o ARTICLE_RETRIEVED_HEAD_FOLLOWS
 public static final int ARTICLE_RETRIEVED_HEAD_FOLLOWS
 o ARTICLE_RETRIEVED_BODY_FOLLOWS
 public static final int ARTICLE_RETRIEVED_BODY_FOLLOWS
 o ARTICLE_RETRIEVED_REQUEST_TEXT_SEPARATELY
 public static final int ARTICLE_RETRIEVED_REQUEST_TEXT_SEPARATELY
 o ARTICLE_LIST_BY_MESSAGE_ID_FOLLOWS
 public static final int ARTICLE_LIST_BY_MESSAGE_ID_FOLLOWS
 o NEW_NEWSGROUP_LIST_FOLLOWS
 public static final int NEW_NEWSGROUP_LIST_FOLLOWS
 o ARTICLE_TRANSFERRED_OK
 public static final int ARTICLE_TRANSFERRED_OK
 o ARTICLE_POSTED_OK
 public static final int ARTICLE_POSTED_OK
 o SEND_ARTICLE_TO_TRANSFER
 public static final int SEND_ARTICLE_TO_TRANSFER
 o SEND_ARTICLE_TO_POST
 public static final int SEND_ARTICLE_TO_POST
 o SERVICE_DISCONTINUED
 public static final int SERVICE_DISCONTINUED
 o NO_SUCH_NEWSGROUP
 public static final int NO_SUCH_NEWSGROUP
 o NO_NEWSGROUP_SELECTED
 public static final int NO_NEWSGROUP_SELECTED
 o NO_CURRENT_ARTICLE_SELECTED
 public static final int NO_CURRENT_ARTICLE_SELECTED
 o NO_NEXT_ARTICLE
 public static final int NO_NEXT_ARTICLE
 o NO_PREVIOUS_ARTICLE
 public static final int NO_PREVIOUS_ARTICLE
 o NO_SUCH_ARTICLE_NUMBER
 public static final int NO_SUCH_ARTICLE_NUMBER
 o NO_SUCH_ARTICLE_FOUND
 public static final int NO_SUCH_ARTICLE_FOUND
 o ARTICLE_NOT_WANTED
 public static final int ARTICLE_NOT_WANTED
 o TRANSFER_FAILED
 public static final int TRANSFER_FAILED
 o ARTICLE_REJECTED
 public static final int ARTICLE_REJECTED
 o POSTING_NOT_ALLOWED
 public static final int POSTING_NOT_ALLOWED
 o POSTING_FAILED
 public static final int POSTING_FAILED
 o COMMAND_NOT_RECOGNIZED
 public static final int COMMAND_NOT_RECOGNIZED
 o COMMAND_SYNTAX_ERROR
 public static final int COMMAND_SYNTAX_ERROR
 o PERMISSION_DENIED
 public static final int PERMISSION_DENIED
 o PROGRAM_FAULT
 public static final int PROGRAM_FAULT

Methods

 o isInformational
 public static boolean isInformational(int reply)
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.
Returns:
True if a reply code is an informational response, false if not.
 o isPositiveCompletion
 public static boolean isPositiveCompletion(int reply)
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.
Returns:
True if a reply code is a postive completion response, false if not.
 o isPositiveIntermediate
 public static boolean isPositiveIntermediate(int reply)
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.
Returns:
True if a reply code is a postive intermediate response, false if not.
 o isNegativeTransient
 public static boolean isNegativeTransient(int reply)
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.
Returns:
True if a reply code is a negative transient response, false if not.
 o isNegativePermanent
 public static boolean isNegativePermanent(int reply)
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.
Returns:
True if a reply code is a negative permanent response, false if not.

ORO, Inc. Logo  All Packages  Class Hierarchy  This Package  Previous  Next  Index