Java Doc for NNTPReply.java in  » Net » Apache-commons-net-1.4.1 » org » apache » commons » net » nntp » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » Apache commons net 1.4.1 » org.apache.commons.net.nntp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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



Field Summary
final public static  intARTICLE_LIST_BY_MESSAGE_ID_FOLLOWS
    
final public static  intARTICLE_NOT_WANTED
    
final public static  intARTICLE_POSTED_OK
    
final public static  intARTICLE_REJECTED
    
final public static  intARTICLE_RETRIEVED_BODY_FOLLOWS
    
final public static  intARTICLE_RETRIEVED_HEAD_AND_BODY_FOLLOW
    
final public static  intARTICLE_RETRIEVED_HEAD_FOLLOWS
    
final public static  intARTICLE_RETRIEVED_REQUEST_TEXT_SEPARATELY
    
final public static  intARTICLE_TRANSFERRED_OK
    
final public static  intAUTHENTICATION_ACCEPTED
    
final public static  intAUTHENTICATION_REJECTED
    
final public static  intAUTHENTICATION_REQUIRED
    
final public static  intCLOSING_CONNECTION
    
final public static  intCODE_100
    
final public static  intCODE_199
    
final public static  intCODE_200
    
final public static  intCODE_201
    
final public static  intCODE_202
    
final public static  intCODE_205
    
final public static  intCODE_211
    
final public static  intCODE_215
    
final public static  intCODE_220
    
final public static  intCODE_221
    
final public static  intCODE_222
    
final public static  intCODE_223
    
final public static  intCODE_230
    
final public static  intCODE_231
    
final public static  intCODE_235
    
final public static  intCODE_240
    
final public static  intCODE_281
    
final public static  intCODE_335
    
final public static  intCODE_340
    
final public static  intCODE_381
    
final public static  intCODE_400
    
final public static  intCODE_408
    
final public static  intCODE_411
    
final public static  intCODE_412
    
final public static  intCODE_420
    
final public static  intCODE_421
    
final public static  intCODE_422
    
final public static  intCODE_423
    
final public static  intCODE_430
    
final public static  intCODE_435
    
final public static  intCODE_436
    
final public static  intCODE_437
    
final public static  intCODE_440
    
final public static  intCODE_441
    
final public static  intCODE_482
    
final public static  intCODE_500
    
final public static  intCODE_501
    
final public static  intCODE_502
    
final public static  intCODE_503
    
final public static  intCOMMAND_NOT_RECOGNIZED
    
final public static  intCOMMAND_SYNTAX_ERROR
    
final public static  intDEBUG_OUTPUT
    
final public static  intGROUP_SELECTED
    
final public static  intHELP_TEXT_FOLLOWS
    
final public static  intMORE_AUTH_INFO_REQUIRED
    
final public static  intNEW_NEWSGROUP_LIST_FOLLOWS
    
final public static  intNO_CURRENT_ARTICLE_SELECTED
    
final public static  intNO_NEWSGROUP_SELECTED
    
final public static  intNO_NEXT_ARTICLE
    
final public static  intNO_PREVIOUS_ARTICLE
    
final public static  intNO_SUCH_ARTICLE_FOUND
    
final public static  intNO_SUCH_ARTICLE_NUMBER
    
final public static  intNO_SUCH_NEWSGROUP
    
final public static  intPERMISSION_DENIED
    
final public static  intPOSTING_FAILED
    
final public static  intPOSTING_NOT_ALLOWED
    
final public static  intPROGRAM_FAULT
    
final public static  intSEND_ARTICLE_TO_POST
    
final public static  intSEND_ARTICLE_TO_TRANSFER
    
final public static  intSERVER_READY_POSTING_ALLOWED
    
final public static  intSERVER_READY_POSTING_NOT_ALLOWED
    
final public static  intSERVICE_DISCONTINUED
    
final public static  intSLAVE_STATUS_NOTED
    
final public static  intTRANSFER_FAILED
    


Method Summary
public static  booleanisInformational(int reply)
     Determine if a reply code is an informational response.
public static  booleanisNegativePermanent(int reply)
     Determine if a reply code is a negative permanent response.
public static  booleanisNegativeTransient(int reply)
     Determine if a reply code is a negative transient response.
public static  booleanisPositiveCompletion(int reply)
     Determine if a reply code is a positive completion response.
public static  booleanisPositiveIntermediate(int reply)
     Determine if a reply code is a positive intermediate response.

Field Detail
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)





Method Detail
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.




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.