⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mailcontent.java

📁 噶额外噶外骨骼感广泛高热感 就 啊啊
💻 JAVA
字号:
/*
 * @author                        : Neelesh
 * @Version                       : 2.0
 *
 * Development Environment        : Oracle9i JDeveloper
 * Name of the File               : MailContent.java
 * Creation/Modification History  :
 *
 * Neelesh    02-March-2003      Created
 *
 */
package oracle.otnsamples.util;

/**
 * Class encapsulating e-mail parameters like a mail-From, To, CC addresses,
 * content and subject.
 *
 * @author Neelesh
 * @version 2.0
 */
public class MailContent implements java.io.Serializable {

  private String body; // Body of the e-mail 
  private String from; // From address of the e-mail
  private String subject; // Subject of the e-mail
  private String to; // To address of the e-mail
  private String[] cc; // List of CC addresses

  /**
   * Default Constructor. Takes no arguments
   *
   * @since 2.0
   */
  public MailContent() {
  }
  /**
   * Constructor with e-mail details
   *
   * @param subject e-mail subject
   * @param bodybody Body of the e-mail
   * @param toAddrtoAddr To address
   * @param ccAddrccAddr List of CC addresses
   * @param fromAddrfromAddr From address
   */
  public MailContent(
                     String subject, String body, String toAddr, String[] ccAddr,
                     String fromAddr) {
    this.body      = body;
    this.subject   = subject;
    this.cc        = ccAddr;
    this.to        = toAddr;
    this.from      = fromAddr;
  }

  /**
   * Get the mail body of the e-mail
   *
   * @return <b>body</b> Body of the e-mail
   */
  public String getBody() {

    return body;
  }
  /**
   * Set the body of the e-mail
   *
   * @param bodybody Body of the e-mail
   */
  public void setBody(String body) {
    this.body = body;
  }
  /**
   * Get the CC address list of the e-mail
   *
   * @return <b>cc[]</b> CC addresses of the e-mail
   */
  public String[] getCC() {

    return cc;
  }
  /**
   * Set the CC address list of the e-mail
   *
   * @param ccAddrccAddr[] CC addresses of the e-mail
   */
  public void setCC(String[] ccAddr) {
    cc = ccAddr;
  }
  /**
   * Get the subject of the e-mail
   *
   * @return <b>subject</b> Subject of the e-mail
   */
  public String getSubject() {

    return subject;
  }
  /**
   * Set the subject of the e-mail
   *
   * @param subjectsubject Subject of the e-mail
   */
  public void setSubject(String subject) {
    this.subject = subject;
  }
  /**
   * Get the TO address of the e-mail
   *
   * @return <b>To</b> To address of the e-mail
   */
  public String getTo() {

    return to;
  }
  /**
   * Set the TO address of the e-mail
   *
   * @param toAddrtoAddr To address of the e-mail
   */
  public void setTo(String toAddr) {
    to = toAddr;
  }
  /**
   * Get the FROM address of the e-mail
   *
   * @return <b>From</b> From address of the e-mail
   */
  public String getFrom() {

    return from;
  }
  /**
   * Set the FROM address of the e-mail
   *
   * @param fromAddrfromAddr From address of the e-mail
   */
  public void setFrom(String fromAddr) {
    from = fromAddr;
  }
}

⌨️ 快捷键说明

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