javamailconnection.java
来自「一个java写的加密算法」· Java 代码 · 共 47 行
JAVA
47 行
/* * Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */package samples.connectors.mailconnector.api;import javax.mail.*;import javax.mail.Message.*;import javax.mail.internet.*;import javax.resource.*;/** * Application-level connection handle that is used by a * client component to access an EIS instance. * * @author Alejandro E. Murillo */public interface JavaMailConnection{ /** * Fetches new messages from the mail server. Application-specific method. * * @return an array of messages */ public javax.mail.Message[] getNewMessages() throws ResourceException; /** * Fetches new message headers from the mail server. Application-specific * method. * * @return a String array of message headers */ public String[] getNewMessageHeaders() throws ResourceException; /** * Closes the connection. */ public void close() throws ResourceException;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?