mailreceiver.java

来自「一个关于tlms的一个小程序 看看能否帮助到别人」· Java 代码 · 共 56 行

JAVA
56
字号
/**
 * =============================================
 * Copyright 2005 TransFar
 *
 * Change Revision
 * --------------------------------
 *   Date        Author      Remarks
 *   Dec 22, 2005     yHuang     Create class com.szmx.component.mail.MailReceiver
 * =============================================
 */
package com.szmx.component.mail;

import javax.mail.internet.MimeMessage;
import javax.mail.MessagingException;
import javax.mail.Part;

/**
 * <TODO: Write a short description on the purpose of the program>
 *
 * @author yHuang
 * @version 1.0
 * @class com.szmx.component.mail.MailReceiver
 * @since Dec 22, 2005
 */
public interface MailReceiver {
    void setMimeMessage(MimeMessage mimeMessage);

    String getFrom() throws Exception;

    String getMailAddress(String type) throws Exception;

    String getSubject() throws MessagingException;

    String getSentDate() throws Exception;

    String getBodyText();

    void getMailContent(Part part) throws Exception;

    boolean getReplySign() throws MessagingException;

    String getMessageId() throws MessagingException;

    boolean isNew() throws MessagingException;

    boolean isContainAttach(Part part) throws Exception;

    void saveAttachMent(Part part) throws Exception;

    void setAttachPath(String attachpath);

    void setDateFormat(String format) throws Exception;

    String getAttachPath();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?