本文整理匯總了Java中com.icegreen.greenmail.smtp.commands.SmtpCommandRegistry類的典型用法代碼示例。如果您正苦於以下問題:Java SmtpCommandRegistry類的具體用法?Java SmtpCommandRegistry怎麽用?Java SmtpCommandRegistry使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
SmtpCommandRegistry類屬於com.icegreen.greenmail.smtp.commands包,在下文中一共展示了SmtpCommandRegistry類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: SmtpHandler
import com.icegreen.greenmail.smtp.commands.SmtpCommandRegistry; //導入依賴的package包/類
public SmtpHandler(SmtpCommandRegistry registry,
SmtpManager manager, Workspace workspace, Socket socket) {
_registry = registry;
_manager = manager;
_workspace = workspace;
_socket = socket;
}
示例2: createProtocolHandler
import com.icegreen.greenmail.smtp.commands.SmtpCommandRegistry; //導入依賴的package包/類
@Override
protected ProtocolHandler createProtocolHandler(final Socket clientSocket) {
return new SmtpHandler(new SmtpCommandRegistry(), managers.getSmtpManager(),
new InMemoryWorkspace(), clientSocket);
}