public class ImmutableStatusResponse extends Object implements StatusResponse
StatusResponseStatusResponse.ResponseCode, StatusResponse.Type| Constructor and Description |
|---|
ImmutableStatusResponse(StatusResponse.Type serverResponseType,
String tag,
ImapCommand command,
HumanReadableText textKey,
StatusResponse.ResponseCode responseCode) |
| Modifier and Type | Method and Description |
|---|---|
ImapCommand |
getCommand()
Gets the command.
|
StatusResponse.ResponseCode |
getResponseCode()
Gets the response code.
|
StatusResponse.Type |
getServerResponseType()
Gets the server response type of this status message.
|
String |
getTag()
Gets the tag.
|
HumanReadableText |
getTextKey()
Gets the key to the human readable text to be displayed.
|
public ImmutableStatusResponse(StatusResponse.Type serverResponseType, String tag, ImapCommand command, HumanReadableText textKey, StatusResponse.ResponseCode responseCode)
public StatusResponse.ResponseCode getResponseCode()
StatusResponsegetResponseCode in interface StatusResponseResponseCode, or null if there is no response codeStatusResponse.getResponseCode()public StatusResponse.Type getServerResponseType()
StatusResponsegetServerResponseType in interface StatusResponseStatusResponse.Type.BAD, StatusResponse.Type.BYE, StatusResponse.Type.NO,
StatusResponse.Type.OK or StatusResponse.Type.PREAUTHStatusResponse.getServerResponseType()public String getTag()
StatusResponsegetTag in interface StatusResponseStatusResponse.getTag()public HumanReadableText getTextKey()
StatusResponsegetTextKey in interface StatusResponseStatusResponse.getTextKey()public ImapCommand getCommand()
StatusResponsegetCommand in interface StatusResponseStatusResponse.getCommand()Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.