本文整理汇总了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();
}
示例2: commandResponse
import com.icegreen.greenmail.imap.commands.ImapCommand; //导入依赖的package包/类
public void commandResponse(ImapCommand command, String message) {
untagged();
commandName(command);
message(message);
end();
}
示例3: commandName
import com.icegreen.greenmail.imap.commands.ImapCommand; //导入依赖的package包/类
private void commandName(ImapCommand command) {
String name = command.getName();
print(SP);
print(name);
}
示例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);
}
示例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();
}