public static final class StatusResponse.ResponseCode extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
static StatusResponse.ResponseCode |
alert()
Creates a RFC2060
ALERT response code. |
static StatusResponse.ResponseCode |
appendUid(long uidValidity,
IdRange[] uids)
RFC4315
APPENDUID response code |
static StatusResponse.ResponseCode |
badCharset(Collection<String> charsetNames)
Creates a RFC2060
BADCHARSET response code. |
static StatusResponse.ResponseCode |
closed()
Create a RFC5162 (QRESYNC)
CLOSED response code |
static StatusResponse.ResponseCode |
condStore(IdRange[] failedRanges)
RFC4551
Conditional STORE response code |
static StatusResponse.ResponseCode |
copyUid(long uidValidity,
IdRange[] sourceRanges,
IdRange[] targetRanges)
RFC4315
COPYUID response code |
static StatusResponse.ResponseCode |
createExtension(String name)
Creates an extension response code.
|
boolean |
equals(Object obj) |
String |
getCode() |
long |
getNumber()
Gets number for this response.
|
Collection<String> |
getParameters()
Gets parameters for this code.
|
int |
hashCode() |
static StatusResponse.ResponseCode |
highestModSeq(long modSeq)
Create a RFC4551
HIGESTMODSEQ response code |
static StatusResponse.ResponseCode |
noModSeq()
Create a RFC4551
NOMODSEQ response code |
static StatusResponse.ResponseCode |
parse()
Creates a RFC2060
PARSE response code. |
static StatusResponse.ResponseCode |
permanentFlags(javax.mail.Flags flags)
Creates a RFC2060
PERMENANTFLAGS response code. |
static StatusResponse.ResponseCode |
readOnly()
Creates a RFC2060
READ-ONLY response code. |
static StatusResponse.ResponseCode |
readWrite()
Creates a RFC2060
READ-WRITE response code. |
String |
toString() |
static StatusResponse.ResponseCode |
tryCreate()
Creates a RFC2060
TRYCREATE response code. |
static StatusResponse.ResponseCode |
uidNext(long uid)
Creates a RFC2060
UIDNEXT response code. |
static StatusResponse.ResponseCode |
uidValidity(long uid)
Creates a RFC2060
UIDVALIDITY response code. |
static StatusResponse.ResponseCode |
unseen(int numberUnseen)
Creates a RFC2060
UNSEEN response code. |
boolean |
useParens() |
public static final int NO_NUMBER
public static StatusResponse.ResponseCode appendUid(long uidValidity, IdRange[] uids)
APPENDUID response codepublic static StatusResponse.ResponseCode copyUid(long uidValidity, IdRange[] sourceRanges, IdRange[] targetRanges)
COPYUID response codepublic static StatusResponse.ResponseCode condStore(IdRange[] failedRanges)
Conditional STORE response codepublic static StatusResponse.ResponseCode closed()
CLOSED response codepublic static StatusResponse.ResponseCode alert()
ALERT response code.ResponseCode, not nullpublic static StatusResponse.ResponseCode badCharset(Collection<String> charsetNames)
BADCHARSET response code.charsetNames - Collection containing charset namesResponseCode, not nullpublic static StatusResponse.ResponseCode parse()
PARSE response code.ResponseCode, not nullpublic static StatusResponse.ResponseCode permanentFlags(javax.mail.Flags flags)
PERMENANTFLAGS response code.flags - Collection containing flag namesResponseCode, not nullpublic static StatusResponse.ResponseCode readOnly()
READ-ONLY response code.ResponseCode, not nullpublic static StatusResponse.ResponseCode readWrite()
READ-WRITE response code.ResponseCode, not nullpublic static StatusResponse.ResponseCode tryCreate()
TRYCREATE response code.ResponseCode, not nullpublic static StatusResponse.ResponseCode uidValidity(long uid)
UIDVALIDITY response code.uid - positive non-zero integerResponseCode, not nullpublic static StatusResponse.ResponseCode unseen(int numberUnseen)
UNSEEN response code.numberUnseen - positive non-zero integerResponseCode, not nullpublic static StatusResponse.ResponseCode uidNext(long uid)
UIDNEXT response code.uid - positive non-zero integerResponseCode, not nullpublic static StatusResponse.ResponseCode highestModSeq(long modSeq)
HIGESTMODSEQ response codemodSeq - positive non-zero longResponseCodepublic static StatusResponse.ResponseCode noModSeq()
NOMODSEQ response codeResponseCodepublic static StatusResponse.ResponseCode createExtension(String name)
name - extension code, not nullResponseCode, not nullpublic String getCode()
public long getNumber()
public boolean useParens()
public Collection<String> getParameters()
Collection of String
parameters, not nullCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.