public abstract class AbstactStatusResponseFactory extends Object implements StatusResponseFactory
Constructor and Description |
---|
AbstactStatusResponseFactory() |
Modifier and Type | Method and Description |
---|---|
StatusResponse |
bye(HumanReadableText displayTextKey)
Creates a BYE status response.
|
StatusResponse |
bye(HumanReadableText displayTextKey,
StatusResponse.ResponseCode code)
Creates a BYE status response.
|
protected abstract StatusResponse |
createResponse(StatusResponse.Type type,
String tag,
ImapCommand command,
HumanReadableText displayTextKey,
StatusResponse.ResponseCode code) |
StatusResponse |
preauth(HumanReadableText displayTextKey)
Creates a PREAUTH status response.
|
StatusResponse |
preauth(HumanReadableText displayTextKey,
StatusResponse.ResponseCode code)
Creates a PREAUTH status response.
|
StatusResponse |
taggedBad(String tag,
ImapCommand command,
HumanReadableText displayTextKey)
Creates a tagged BAD status response.
|
StatusResponse |
taggedBad(String tag,
ImapCommand command,
HumanReadableText displayTextKey,
StatusResponse.ResponseCode code)
Creates a tagged BAD status response.
|
StatusResponse |
taggedNo(String tag,
ImapCommand command,
HumanReadableText displayTextKey)
Creates a tagged NO status response.
|
StatusResponse |
taggedNo(String tag,
ImapCommand command,
HumanReadableText displayTextKey,
StatusResponse.ResponseCode code)
Creates a tagged NO status response.
|
StatusResponse |
taggedOk(String tag,
ImapCommand command,
HumanReadableText displayTextKey)
Creates a tagged OK status response.
|
StatusResponse |
taggedOk(String tag,
ImapCommand command,
HumanReadableText displayTextKey,
StatusResponse.ResponseCode code)
Creates a tagged OK status response.
|
StatusResponse |
untaggedBad(HumanReadableText displayTextKey)
Creates a untagged BAD status response.
|
StatusResponse |
untaggedBad(HumanReadableText displayTextKey,
StatusResponse.ResponseCode code)
Creates a untagged BAD status response.
|
StatusResponse |
untaggedNo(HumanReadableText displayTextKey)
Creates a untagged NO status response.
|
StatusResponse |
untaggedNo(HumanReadableText displayTextKey,
StatusResponse.ResponseCode code)
Creates a untagged NO status response.
|
StatusResponse |
untaggedOk(HumanReadableText displayTextKey)
Creates a untagged OK status response.
|
StatusResponse |
untaggedOk(HumanReadableText displayTextKey,
StatusResponse.ResponseCode code)
Creates a untagged OK status response.
|
protected abstract StatusResponse createResponse(StatusResponse.Type type, String tag, ImapCommand command, HumanReadableText displayTextKey, StatusResponse.ResponseCode code)
public StatusResponse bye(HumanReadableText displayTextKey, StatusResponse.ResponseCode code)
StatusResponseFactory
bye
in interface StatusResponseFactory
displayTextKey
- key to the human readable code to be displayedcode
- ResponseCode
, not nullStatusResponse
, not nullpublic StatusResponse bye(HumanReadableText displayTextKey)
StatusResponseFactory
bye
in interface StatusResponseFactory
displayTextKey
- key to the human readable code to be displayedStatusResponse
, not nullpublic StatusResponse preauth(HumanReadableText displayTextKey, StatusResponse.ResponseCode code)
StatusResponseFactory
preauth
in interface StatusResponseFactory
displayTextKey
- key to the human readable code to be displayedcode
- ResponseCode
, not nullStatusResponse
, not nullpublic StatusResponse preauth(HumanReadableText displayTextKey)
StatusResponseFactory
preauth
in interface StatusResponseFactory
displayTextKey
- key to the human readable code to be displayedStatusResponse
, not nullpublic StatusResponse taggedBad(String tag, ImapCommand command, HumanReadableText displayTextKey, StatusResponse.ResponseCode code)
StatusResponseFactory
taggedBad
in interface StatusResponseFactory
tag
- CharSequence
, not nullcommand
- ImapCommand
, not nulldisplayTextKey
- key to the human readable code to be displayedcode
- ResponseCode
, not nullStatusResponse
, not nullpublic StatusResponse taggedBad(String tag, ImapCommand command, HumanReadableText displayTextKey)
StatusResponseFactory
taggedBad
in interface StatusResponseFactory
tag
- CharSequence
, not nullcommand
- ImapCommand
, not nulldisplayTextKey
- key to the human readable code to be displayedStatusResponse
, not nullpublic StatusResponse taggedNo(String tag, ImapCommand command, HumanReadableText displayTextKey, StatusResponse.ResponseCode code)
StatusResponseFactory
taggedNo
in interface StatusResponseFactory
tag
- CharSequence
, not nullcommand
- ImapCommand
, not nulldisplayTextKey
- key to the human readable code to be displayedcode
- ResponseCode
, not nullStatusResponse
, not nullpublic StatusResponse taggedNo(String tag, ImapCommand command, HumanReadableText displayTextKey)
StatusResponseFactory
taggedNo
in interface StatusResponseFactory
tag
- CharSequence
, not nullcommand
- ImapCommand
, not nulldisplayTextKey
- key to the human readable code to be displayedStatusResponse
, not nullpublic StatusResponse taggedOk(String tag, ImapCommand command, HumanReadableText displayTextKey, StatusResponse.ResponseCode code)
StatusResponseFactory
taggedOk
in interface StatusResponseFactory
tag
- operation tag, not nullcommand
- ImapCommand
, not nulldisplayTextKey
- key to the human readable code to be displayedcode
- ResponseCode
, not nullStatusResponse
, not nullpublic StatusResponse taggedOk(String tag, ImapCommand command, HumanReadableText displayTextKey)
StatusResponseFactory
taggedOk
in interface StatusResponseFactory
tag
- CharSequence
, not nullcommand
- ImapCommand
, not nulldisplayTextKey
- key to the human readable code to be displayedStatusResponse
, not nullpublic StatusResponse untaggedBad(HumanReadableText displayTextKey, StatusResponse.ResponseCode code)
StatusResponseFactory
untaggedBad
in interface StatusResponseFactory
displayTextKey
- key to the human readable code to be displayedcode
- ResponseCode
, not nullStatusResponse
, not nullpublic StatusResponse untaggedBad(HumanReadableText displayTextKey)
StatusResponseFactory
untaggedBad
in interface StatusResponseFactory
displayTextKey
- key to the human readable code to be displayedStatusResponse
, not nullpublic StatusResponse untaggedNo(HumanReadableText displayTextKey, StatusResponse.ResponseCode code)
StatusResponseFactory
untaggedNo
in interface StatusResponseFactory
displayTextKey
- key to the human readable code to be displayedcode
- ResponseCode
, not nullStatusResponse
, not nullpublic StatusResponse untaggedNo(HumanReadableText displayTextKey)
StatusResponseFactory
untaggedNo
in interface StatusResponseFactory
displayTextKey
- key to the human readable code to be displayedStatusResponse
, not nullpublic StatusResponse untaggedOk(HumanReadableText displayTextKey, StatusResponse.ResponseCode code)
StatusResponseFactory
untaggedOk
in interface StatusResponseFactory
displayTextKey
- key to the human readable code to be displayedcode
- ResponseCode
, not nullStatusResponse
, not nullpublic StatusResponse untaggedOk(HumanReadableText displayTextKey)
StatusResponseFactory
untaggedOk
in interface StatusResponseFactory
displayTextKey
- key to the human readable code to be displayedStatusResponse
, not nullCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.