public class IMAPResponse extends Response
Constructor and Description |
---|
IMAPResponse(IMAPResponse r)
Copy constructor.
|
IMAPResponse(Protocol c) |
IMAPResponse(String r)
For testing.
|
IMAPResponse(String r,
boolean utf8)
For testing.
|
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
int |
getNumber() |
boolean |
keyEquals(String k) |
String[] |
readSimpleList()
Read a list of space-separated "flag-extension" sequences and
return the list as a array of Strings.
|
byeResponse, getException, getRest, getTag, getType, isBAD, isBYE, isContinuation, isNextNonSpace, isNO, isOK, isSynthetic, isTagged, isUnTagged, peekByte, readAtom, readAtomString, readAtomStringList, readByte, readByteArray, readBytes, readLong, readNumber, readString, readString, readStringList, reset, skip, skipSpaces, skipToken, supportsUtf8, toString
public IMAPResponse(Protocol c) throws IOException, ProtocolException
IOException
ProtocolException
public IMAPResponse(IMAPResponse r)
r
- the IMAPResponse to copypublic IMAPResponse(String r) throws IOException, ProtocolException
r
- the response stringIOException
- for I/O errorsProtocolException
- for protocol failurespublic IMAPResponse(String r, boolean utf8) throws IOException, ProtocolException
r
- the response stringutf8
- UTF-8 allowed?IOException
- for I/O errorsProtocolException
- for protocol failurespublic String[] readSimpleList()
public String getKey()
public boolean keyEquals(String k)
public int getNumber()
Copyright © 2019 JBoss by Red Hat. All rights reserved.