public interface ImapResponseComposer
| Modifier and Type | Method and Description |
|---|---|
ImapResponseComposer |
closeParen()
Write a ')'
|
ImapResponseComposer |
closeSquareBracket()
Write a '}'
|
ImapResponseComposer |
commandName(String name) |
ImapResponseComposer |
commandResponse(ImapCommand command,
String message)
Compose a response which contains the
ImapCommand to which the response belongs |
ImapResponseComposer |
continuationResponse(String message)
Writes a continuation response.
|
ImapResponseComposer |
end()
Write a CRLF and flush the composer which will write the content of it to the socket
|
ImapResponseComposer |
flags(javax.mail.Flags flags)
Compose flags to output using standard format.
|
ImapResponseComposer |
literal(Literal literal)
Compose a
Literal and write it to the socket. |
ImapResponseComposer |
message(long number)
Write the message of type
Long |
ImapResponseComposer |
message(String message)
Write the message of type
String |
ImapResponseComposer |
nil()
Composes a
NIL. |
ImapResponseComposer |
openParen()
Write a '('
|
ImapResponseComposer |
openSquareBracket()
Write a '{'
|
ImapResponseComposer |
quote(String message)
Write a quoted message
|
ImapResponseComposer |
quoteUpperCaseAscii(String message)
Appends the given message after conversion to upper case.
|
ImapResponseComposer |
sequenceSet(IdRange[] ranges)
Write the given sequence-set
|
ImapResponseComposer |
skipNextSpace()
Tell the
ImapResponseComposer to skip the next written space |
ImapResponseComposer |
tag(String tag)
Write a tag
|
ImapResponseComposer |
taggedResponse(String message,
String tag)
Writes the message provided to the client, prepended with the request
tag.
|
ImapResponseComposer |
untagged()
Write a '*'
|
ImapResponseComposer |
untaggedNoResponse(String displayMessage,
String responseCode)
Writes an untagged NO response.
|
ImapResponseComposer |
untaggedResponse(String message)
Writes the message provided to the client, prepended with the untagged
marker "*".
|
ImapResponseComposer |
upperCaseAscii(String message)
Appends the given message after conversion to upper case.
|
ImapResponseComposer untaggedNoResponse(String displayMessage, String responseCode) throws IOException
displayMessage - message for display, not nullresponseCode - response code or null when there is no response codeIOExceptionImapResponseComposer flags(javax.mail.Flags flags) throws IOException
flags - Flags, not nullIOExceptionImapResponseComposer nil() throws IOException
NIL.IOExceptionImapResponseComposer commandResponse(ImapCommand command, String message) throws IOException
ImapCommand to which the response belongscommand - message - IOExceptionImapResponseComposer taggedResponse(String message, String tag) throws IOException
message - The message to write to the client.IOExceptionImapResponseComposer untaggedResponse(String message) throws IOException
message - The message to write to the client.IOExceptionImapResponseComposer untagged() throws IOException
IOExceptionImapResponseComposer commandName(String name) throws IOException
name - IOExceptionImapResponseComposer message(String message) throws IOException
Stringmessage - IOExceptionImapResponseComposer message(long number) throws IOException
Longnumber - IOExceptionImapResponseComposer sequenceSet(IdRange[] ranges) throws IOException
ranges - IOExceptionImapResponseComposer end() throws IOException
IOExceptionImapResponseComposer tag(String tag) throws IOException
tag - IOExceptionImapResponseComposer quote(String message) throws IOException
message - IOExceptionImapResponseComposer literal(Literal literal) throws IOException
Literal and write it to the socket. Everything which was buffered before will
get written tooliteral - IOExceptionImapResponseComposer openParen() throws IOException
IOExceptionImapResponseComposer closeParen() throws IOException
IOExceptionImapResponseComposer upperCaseAscii(String message) throws IOException
message - ASCII encoded, not nullIOExceptionImapResponseComposer quoteUpperCaseAscii(String message) throws IOException
message - ASCII encoded, not nullIOExceptionImapResponseComposer skipNextSpace() throws IOException
ImapResponseComposer to skip the next written spaceIOExceptionImapResponseComposer continuationResponse(String message) throws IOException
message - message for display, not nullIOExceptionImapResponseComposer closeSquareBracket() throws IOException
IOExceptionImapResponseComposer openSquareBracket() throws IOException
IOExceptionCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.