當前位置: 首頁>>代碼示例>>Java>>正文


Java ImapCommand類代碼示例

本文整理匯總了Java中com.icegreen.greenmail.imap.commands.ImapCommand的典型用法代碼示例。如果您正苦於以下問題:Java ImapCommand類的具體用法?Java ImapCommand怎麽用?Java ImapCommand使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ImapCommand類屬於com.icegreen.greenmail.imap.commands包,在下文中一共展示了ImapCommand類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: commandFailed

import com.icegreen.greenmail.imap.commands.ImapCommand; //導入依賴的package包/類
/**
 * Writes a standard NO response on command failure, together with a
 * descriptive message.
 * Response is writen as:
 * <pre>     a01 NO [responseCode] COMMAND_NAME failed. <reason></pre>
 *
 * @param command      The ImapCommand which failed.
 * @param responseCode The Imap response code to send.
 * @param reason       A message describing why the command failed.
 */
public void commandFailed(ImapCommand command,
                          String responseCode,
                          String reason) {
    tag();
    message(NO);
    responseCode(responseCode);
    commandName(command);
    message("failed.");
    message(reason);
    end();
}
 
開發者ID:Alfresco,項目名稱:alfresco-greenmail,代碼行數:22,代碼來源:ImapResponse.java

示例2: commandResponse

import com.icegreen.greenmail.imap.commands.ImapCommand; //導入依賴的package包/類
public void commandResponse(ImapCommand command, String message) {
    untagged();
    commandName(command);
    message(message);
    end();
}
 
開發者ID:Alfresco,項目名稱:alfresco-greenmail,代碼行數:7,代碼來源:ImapResponse.java

示例3: commandName

import com.icegreen.greenmail.imap.commands.ImapCommand; //導入依賴的package包/類
private void commandName(ImapCommand command) {
    String name = command.getName();
    print(SP);
    print(name);
}
 
開發者ID:Alfresco,項目名稱:alfresco-greenmail,代碼行數:6,代碼來源:ImapResponse.java

示例4: commandName

import com.icegreen.greenmail.imap.commands.ImapCommand; //導入依賴的package包/類
private void commandName(ImapCommand command) {
    String name = command.getName();
    writer.print(SP);
    writer.print(name);
}
 
開發者ID:greenmail-mail-test,項目名稱:greenmail,代碼行數:6,代碼來源:ImapResponse.java

示例5: commandComplete

import com.icegreen.greenmail.imap.commands.ImapCommand; //導入依賴的package包/類
/**
 * Writes a standard tagged OK response on completion of a command,
 * with a response code (eg READ-WRITE)
 * Response is writen as:
 * <pre>     a01 OK [responseCode] COMMAND_NAME completed.</pre>
 *
 * @param command      The ImapCommand which was completed.
 * @param responseCode A string response code to send to the client.
 */
public void commandComplete(ImapCommand command, String responseCode) {
    tag();
    message(OK);
    responseCode(responseCode);
    commandName(command);
    message("completed.");
    end();
}
 
開發者ID:Alfresco,項目名稱:alfresco-greenmail,代碼行數:18,代碼來源:ImapResponse.java


注:本文中的com.icegreen.greenmail.imap.commands.ImapCommand類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。