当前位置: 首页>>代码示例>>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;未经允许,请勿转载。