org.apache.geronimo.javamail.transport.nntp
Class NNTPReply

java.lang.Object
  extended by org.apache.geronimo.javamail.transport.nntp.NNTPReply

public class NNTPReply
extends Object

Util class to represent a reply from a NNTP server

Version:
$Rev: 673152 $ $Date: 2008-07-01 13:37:38 -0400 (Tue, 01 Jul 2008) $

Field Summary
static int ARTICLE_FOLLOWS
           
static int ARTICLE_TRANSFERRED
           
static int AUTHENTICATION_ACCEPTED
           
static int AUTHENTICATION_REJECTED
           
static int AUTHINFO_ACCEPTED
           
static int AUTHINFO_ACCEPTED_FINAL
           
static int AUTHINFO_CHALLENGE
           
static int AUTHINFO_CONTINUE
           
static int AUTHINFO_REQUIRED
           
static int AUTHINFO_SIMPLE_REJECTED
           
static int AUTHINFO_SIMPLE_REQUIRED
           
static int BODY_FOLLOWS
           
static int CAPABILITY_LIST
           
static int CLOSING_CONNECTION
           
static int COMMAND_NOT_RECOGNIZED
           
static int COMMAND_SYNTAX_ERROR
           
static int EXTENSIONS_SUPPORTED
           
static int GROUP_SELECTED
           
static int HEAD_FOLLOWS
           
static int LIST_FOLLOWS
           
static int MORE_AUTHENTICATION_REQUIRED
           
static int NEW_ARTICLES_FOLLOWS
           
static int NEW_GROUPS_FOLLOWS
           
static int NO_ARTICLE_FOUND
           
static int NO_ARTICLE_NUMBER
           
static int NO_ARTICLE_SELECTED
           
static int NO_NEWSGROUP_SELECTED
           
static int NO_POSTING_ALLOWED
           
static int NO_SUCH_NEWSGROUP
           
static int OVERVIEW_FOLLOWS
           
static int PERMISSION_DENIED
           
static int POSTED_OK
           
static int POSTING_ALLOWED
           
static int POSTING_FAILED
           
static int POSTING_NOT_ALLOWED
           
static int PROGRAM_FAULT
           
static int REQUEST_TEXT_SEPARATELY
           
static int SEND_ARTICLE
           
static int SERVICE_DISCONTINUED
           
 
Method Summary
 int getCode()
          Return the code value associated with the reply.
 List getData()
          Retrieve the long-command data from this response.
 String getMessage()
          Get the message text associated with the reply.
 String getReply()
          Retrieve the raw reply string for the reponse.
 void retrieveData(BufferedReader in)
          Retrieve data associated with a multi-line reponse from a server stream.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CAPABILITY_LIST

public static final int CAPABILITY_LIST
See Also:
Constant Field Values

POSTING_ALLOWED

public static final int POSTING_ALLOWED
See Also:
Constant Field Values

NO_POSTING_ALLOWED

public static final int NO_POSTING_ALLOWED
See Also:
Constant Field Values

EXTENSIONS_SUPPORTED

public static final int EXTENSIONS_SUPPORTED
See Also:
Constant Field Values

SERVICE_DISCONTINUED

public static final int SERVICE_DISCONTINUED
See Also:
Constant Field Values

COMMAND_NOT_RECOGNIZED

public static final int COMMAND_NOT_RECOGNIZED
See Also:
Constant Field Values

COMMAND_SYNTAX_ERROR

public static final int COMMAND_SYNTAX_ERROR
See Also:
Constant Field Values

PERMISSION_DENIED

public static final int PERMISSION_DENIED
See Also:
Constant Field Values

PROGRAM_FAULT

public static final int PROGRAM_FAULT
See Also:
Constant Field Values

ARTICLE_FOLLOWS

public static final int ARTICLE_FOLLOWS
See Also:
Constant Field Values

HEAD_FOLLOWS

public static final int HEAD_FOLLOWS
See Also:
Constant Field Values

BODY_FOLLOWS

public static final int BODY_FOLLOWS
See Also:
Constant Field Values

REQUEST_TEXT_SEPARATELY

public static final int REQUEST_TEXT_SEPARATELY
See Also:
Constant Field Values

OVERVIEW_FOLLOWS

public static final int OVERVIEW_FOLLOWS
See Also:
Constant Field Values

NEW_ARTICLES_FOLLOWS

public static final int NEW_ARTICLES_FOLLOWS
See Also:
Constant Field Values

NEW_GROUPS_FOLLOWS

public static final int NEW_GROUPS_FOLLOWS
See Also:
Constant Field Values

ARTICLE_TRANSFERRED

public static final int ARTICLE_TRANSFERRED
See Also:
Constant Field Values

NO_NEWSGROUP_SELECTED

public static final int NO_NEWSGROUP_SELECTED
See Also:
Constant Field Values

NO_ARTICLE_SELECTED

public static final int NO_ARTICLE_SELECTED
See Also:
Constant Field Values

NO_ARTICLE_NUMBER

public static final int NO_ARTICLE_NUMBER
See Also:
Constant Field Values

NO_ARTICLE_FOUND

public static final int NO_ARTICLE_FOUND
See Also:
Constant Field Values

GROUP_SELECTED

public static final int GROUP_SELECTED
See Also:
Constant Field Values

NO_SUCH_NEWSGROUP

public static final int NO_SUCH_NEWSGROUP
See Also:
Constant Field Values

POSTED_OK

public static final int POSTED_OK
See Also:
Constant Field Values

SEND_ARTICLE

public static final int SEND_ARTICLE
See Also:
Constant Field Values

POSTING_NOT_ALLOWED

public static final int POSTING_NOT_ALLOWED
See Also:
Constant Field Values

POSTING_FAILED

public static final int POSTING_FAILED
See Also:
Constant Field Values

CLOSING_CONNECTION

public static final int CLOSING_CONNECTION
See Also:
Constant Field Values

AUTHINFO_ACCEPTED

public static final int AUTHINFO_ACCEPTED
See Also:
Constant Field Values

AUTHINFO_ACCEPTED_FINAL

public static final int AUTHINFO_ACCEPTED_FINAL
See Also:
Constant Field Values

AUTHINFO_CONTINUE

public static final int AUTHINFO_CONTINUE
See Also:
Constant Field Values

AUTHINFO_CHALLENGE

public static final int AUTHINFO_CHALLENGE
See Also:
Constant Field Values

AUTHINFO_SIMPLE_REJECTED

public static final int AUTHINFO_SIMPLE_REJECTED
See Also:
Constant Field Values

AUTHENTICATION_ACCEPTED

public static final int AUTHENTICATION_ACCEPTED
See Also:
Constant Field Values

MORE_AUTHENTICATION_REQUIRED

public static final int MORE_AUTHENTICATION_REQUIRED
See Also:
Constant Field Values

AUTHINFO_REQUIRED

public static final int AUTHINFO_REQUIRED
See Also:
Constant Field Values

AUTHINFO_SIMPLE_REQUIRED

public static final int AUTHINFO_SIMPLE_REQUIRED
See Also:
Constant Field Values

AUTHENTICATION_REJECTED

public static final int AUTHENTICATION_REJECTED
See Also:
Constant Field Values

LIST_FOLLOWS

public static final int LIST_FOLLOWS
See Also:
Constant Field Values
Method Detail

retrieveData

public void retrieveData(BufferedReader in)
                  throws MessagingException
Retrieve data associated with a multi-line reponse from a server stream.

Parameters:
in - The reader that's the source of the additional lines.
Throws:
IOException
MessagingException

getData

public List getData()
Retrieve the long-command data from this response.

Returns:
The data list. Returns null if there is no associated data.

getCode

public int getCode()
Return the code value associated with the reply.

Returns:
The integer code associated with the reply.

getMessage

public String getMessage()
Get the message text associated with the reply.

Returns:
The string value of the message from the reply.

getReply

public String getReply()
Retrieve the raw reply string for the reponse.

Returns:
The original reply string from the server.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.