public final class IMAPReply extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
static int |
getReplyCode(java.lang.String line)
Intepret the String reply code - OK, NO, BAD - in a tagged response as a integer.
|
static int |
getUntaggedReplyCode(java.lang.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(java.lang.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(java.lang.String line)
Checks if the reply line is untagged - e.g.
|
public static final int OK
public static final int NO
public static final int BAD
public static final int CONT
public static boolean isUntagged(java.lang.String line)
line
- to be checkedtrue
if the line is untaggedpublic static boolean isContinuation(java.lang.String line)
line
- the line to be checkedtrue
if the line is untaggedpublic static int getReplyCode(java.lang.String line) throws java.io.IOException
public static int getUntaggedReplyCode(java.lang.String line) throws java.io.IOException
public static boolean isSuccess(int replyCode)
replyCode
- the code to checktrue
if the code equals OK
public static boolean isContinuation(int replyCode)
replyCode
- the code to be checkedtrue
if the response was a continuationCopyright © 2001-2012 Apache Software Foundation. All Rights Reserved.