public class ImmutableStatusResponse extends Object implements StatusResponse
StatusResponse
StatusResponse.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()
StatusResponse
getResponseCode
in interface StatusResponse
ResponseCode
, or null if there is no response codeStatusResponse.getResponseCode()
public StatusResponse.Type getServerResponseType()
StatusResponse
getServerResponseType
in interface StatusResponse
StatusResponse.Type.BAD
, StatusResponse.Type.BYE
, StatusResponse.Type.NO
,
StatusResponse.Type.OK
or StatusResponse.Type.PREAUTH
StatusResponse.getServerResponseType()
public String getTag()
StatusResponse
getTag
in interface StatusResponse
StatusResponse.getTag()
public HumanReadableText getTextKey()
StatusResponse
getTextKey
in interface StatusResponse
StatusResponse.getTextKey()
public ImapCommand getCommand()
StatusResponse
getCommand
in interface StatusResponse
StatusResponse.getCommand()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.