01: package com.sun.portal.comm.url;
02:
03: public interface MailURL {
04:
05: /**
06: * Lets invoking classes know if per-message urls are available
07: * in this URLBuilder.
08: *
09: * @return boolean Are message URLs available
10: */
11: public boolean allowsMessageURL();
12:
13: /**
14: * Return URL string for specific message to be opened in mail client.
15: *
16: * @param javax.mail.Message The message to open
17: * @return String Message URL string
18: */
19: public String getMessageURL(javax.mail.Message msg);
20:
21: /**
22: * Lets invoking classes know if composing URLs are available
23: * in this URLBuilder.
24: *
25: * @return boolean Are compisition URLs available
26: */
27: public boolean allowsComposeURL();
28:
29: /**
30: * Return URL string to open the client's compose window.
31: *
32: * @param String Subject of the message
33: * @param javax.mail.Address[] Array of to: addresses
34: * @param javax.mail.Address[] Array of cc: addresses
35: * @param javax.mail.Address[] Array of bcc: addresses
36: * @return String Composition URL string
37: */
38: public String getComposeURL(String subject,
39: javax.mail.Address[] to, javax.mail.Address[] cc,
40: javax.mail.Address[] bcc);
41: }
|