|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.javamail.store.imap.connection.IMAPResponse
org.apache.geronimo.javamail.store.imap.connection.IMAPTaggedResponse
public class IMAPTaggedResponse
Util class to represent a response from a IMAP server
| Field Summary | |
|---|---|
protected String |
message
|
protected String |
status
|
protected String |
tag
|
| Fields inherited from class org.apache.geronimo.javamail.store.imap.connection.IMAPResponse |
|---|
response |
| Constructor Summary | |
|---|---|
IMAPTaggedResponse(byte[] response)
Create a continuation response for a submitted command. |
|
IMAPTaggedResponse(String tag,
String status,
String message,
byte[] response)
Create a command completion response for a submitted command. |
|
| Method Summary | |
|---|---|
byte[] |
decodeChallengeResponse()
Decode the message portion of a continuation challenge response. |
String |
getMessage()
Get the message included on the tagged response. |
boolean |
hasStatus(String name)
Test if the untagged response includes a given status indicator. |
boolean |
isBAD()
Test for an error return from a command. |
boolean |
isContinuation()
Test if this is a continuation response. |
boolean |
isNO()
Test for an error return from a command. |
boolean |
isOK()
Test if the response code was "OK". |
| Methods inherited from class org.apache.geronimo.javamail.store.imap.connection.IMAPResponse |
|---|
getResponseData, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String status
protected String tag
protected String message
| Constructor Detail |
|---|
public IMAPTaggedResponse(String tag,
String status,
String message,
byte[] response)
tag - The command tag value.status - The Status response (OK, BAD, or NO).message - The remainder of the response, as a string.response - The response data used to create the reply object.public IMAPTaggedResponse(byte[] response)
response - The response data used to create the reply object.| Method Detail |
|---|
public boolean isOK()
public boolean isBAD()
public boolean isNO()
public String getMessage()
public byte[] decodeChallengeResponse()
public boolean isContinuation()
public boolean hasStatus(String name)
name - The status name to check.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||