org.apache.james.api.imap.message.response.imap4rev1
Interface StatusResponse

All Superinterfaces:
ImapMessage, ImapResponseMessage
All Known Implementing Classes:
ImmutableStatusResponse

public interface StatusResponse
extends ImapResponseMessage

Represents an RFC2060 status response. The five specified status server responses (OK. NO, BAD, PREAUTH and BYE) are modeled by this single interface. They are differentiated by getServerResponseType()


Nested Class Summary
static class StatusResponse.ResponseCode
          Enumerates response codes.
static class StatusResponse.Type
          Enumerates types of RC2060 status response
 
Method Summary
 ImapCommand getCommand()
          Gets the command.
 StatusResponse.ResponseCode getResponseCode()
          Gets the response code.
 StatusResponse.Type getServerResponseType()
          Gets the server response type of this status message.
 java.lang.String getTag()
          Gets the tag.
 HumanReadableTextKey getTextKey()
          Gets the key to the human readable text to be displayed.
 

Method Detail

getServerResponseType

StatusResponse.Type getServerResponseType()
Gets the server response type of this status message.

Returns:

getTag

java.lang.String getTag()
Gets the tag.

Returns:
if tagged response, the tag. Otherwise null.

getCommand

ImapCommand getCommand()
Gets the command.

Returns:
if tagged response, the command. Otherwise null

getTextKey

HumanReadableTextKey getTextKey()
Gets the key to the human readable text to be displayed. Required.

Returns:
key for the text message to be displayed, not null

getResponseCode

StatusResponse.ResponseCode getResponseCode()
Gets the response code. Optional.

Returns:
ResponseCode, or null if there is no response code


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.