View Javadoc

1   package com.ozacc.mail;
2   
3   import javax.mail.internet.MimeMessage;
4   
5   /***
6    * SMTP¥µ¡¼¥Ð¤È¤ÎÀܳ¡¢ÀÚÃǤòǤ°Õ¤Î¥¿¥¤¥ß¥ó¥°¤Ç¹Ô¤¤¤¿¤¤¾?¹ç¤Ë»ÈÍѤ¹¤?SendMail¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¡£
7    * <p>
8    * ÂçÎ̥᡼¥?ÇÛ¿®¤Ç¡¢Mail¤äMimeMessage¤ÎÇÛÎó¤òÍѰդ¹¤?¤È¥á¥â¥ê¤ò°µÇ÷¤·¤Æ¤·¤Þ¤¦¾?¹ç¤Ê¤É¤Ë»ÈÍѤ·¤Þ¤¹¡£<br>
9    * Àܳ¤Î¥¯¥ú½¼¥º¤ò˺¤?¤Ê¤¤¤è¤¦¤ËÃúÌÕ¤·¤Æ¤¯¤À¤µ¤¤¡£
10   * <p>
11   * ¤³¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¼ÂÁõ¥¯¥é¥¹¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤Ï¡¢¥á¡¼¥?¥µ¡¼¥Ð¤È¤ÎÀܳ¤òÊÝ»?¤¹¤?¤¿¤á¡¢
12   * ¥¹¥?¥Ã¥É¥»¡¼¥Õ¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£<br>
13   * DI¥³¥ó¥Æ¥Ê¤Ç¤Î»ÈÍѤκݤϥ·¥ó¥°¥?¥È¥ó¤Ç¥¤¥ó¥¹¥¿¥ó¥¹¤ò¼èÆÀ¤·¤Ê¤¤¤è¤¦¤ËÃúÌÕ¤·¤Æ¤¯¤À¤µ¤¤¡£
14   * 
15   * @since 1.0
16   * @author Tomohiro Otsuka
17   * @version $Id: SendMailPro.java,v 1.3 2004/10/27 00:24:37 otsuka Exp $
18   */
19  public interface SendMailPro {
20  
21  	/***
22  	 * SMTP¥µ¡¼¥Ð¤ËÀܳ¤·¤Þ¤¹¡£
23  	 * 
24  	 * @throws MailException
25  	 */
26  	void connect() throws MailException;
27  
28  	/***
29  	 * SMTP¥µ¡¼¥Ð¤È¤ÎÀܳ¤ò¥¯¥ú½¼¥º¤·¤Þ¤¹¡£
30  	 * Àܳ¤·¤Æ¤¤¤Ê¤¤»?¤Ë¤³¤Î¥á¥½¥Ã¥É¤ò¸Æ¤ó¤Ç¤â²¿¤â¹Ô¤¤¤Þ¤»¤ó¡£
31  	 * 
32  	 * @throws MailException
33  	 */
34  	void disconnect() throws MailException;
35  
36  	/***
37  	 * »ØÄꤵ¤?¤¿MimeMessage¤òÁ÷¿®¤·¤Þ¤¹¡£SMTP¥µ¡¼¥Ð¤ËÀܳ¤·¤Æ¤¤¤Ê¤¤¾?¹ç¤ÏÎã³°¤ò¥¹¥ú½¼¤·¤Þ¤¹¡£
38  	 * 
39  	 * @param mimeMessage
40  	 * @throws MailException
41  	 */
42  	void send(MimeMessage mimeMessage) throws MailException;
43  
44  	/***
45  	 * »ØÄꤵ¤?¤¿Mail¤òÁ÷¿®¤·¤Þ¤¹¡£SMTP¥µ¡¼¥Ð¤ËÀܳ¤·¤Æ¤¤¤Ê¤¤¾?¹ç¤ÏÎã³°¤ò¥¹¥ú½¼¤·¤Þ¤¹¡£
46  	 * 
47  	 * @param mail
48  	 * @throws MailException
49  	 */
50  	void send(Mail mail) throws MailException;
51  
52  }