|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.net.imap.IMAPReply
public final class IMAPReply
IMAPReply stores IMAP reply code constants.
Field Summary | |
---|---|
static int |
BAD
The reply code indicating command rejection. |
static int |
CONT
The reply code indicating command continuation. |
static int |
NO
The reply code indicating failure of an operation. |
static int |
OK
The reply code indicating success of an operation. |
Method Summary | |
---|---|
static int |
getReplyCode(String line)
Intepret the String reply code - OK, NO, BAD - in a tagged response as a integer. |
static int |
getUntaggedReplyCode(String line)
Intepret the String reply code - OK, NO, BAD - in an untagged response as a integer. |
static boolean |
isContinuation(int replyCode)
Checks if the reply line is a continuation, i.e. |
static boolean |
isContinuation(String line)
Checks if the reply line is a continuation, i.e. |
static boolean |
isSuccess(int replyCode)
Checks whether the reply code indicates success or not |
static boolean |
isUntagged(String line)
Checks if the reply line is untagged - e.g. |
static int |
literalCount(String line)
Checks if the line introduces a literal, i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int OK
public static final int NO
public static final int BAD
public static final int CONT
Method Detail |
---|
public static boolean isUntagged(String line)
line
- to be checked
true
if the line is untaggedpublic static boolean isContinuation(String line)
line
- the line to be checked
true
if the line is untaggedpublic static int getReplyCode(String line) throws IOException
line
- the tagged line to be checked
OK
or NO
or BAD
or CONT
IOException
- if the input has an unexpected formatpublic static int literalCount(String line)
public static int getUntaggedReplyCode(String line) throws IOException
line
- the untagged line to be checked
OK
or NO
or BAD
or CONT
IOException
- if the input has an unexpected formatpublic static boolean isSuccess(int replyCode)
replyCode
- the code to check
true
if the code equals OK
public static boolean isContinuation(int replyCode)
replyCode
- the code to be checked
true
if the response was a continuation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |