KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > scioworks > imap > spec > beans > IWMessage


1 /*
2  * imapWeb
3  *
4  * Enhydra super-servlet specification object
5  *
6  */

7
8 package scioworks.imap.spec.beans;
9
10
11 import javax.mail.*;
12 import javax.mail.internet.*;
13 import javax.activation.*;
14 import java.util.Vector JavaDoc;
15 import scioworks.imap.spec.ImapWebException;
16
17 public interface IWMessage {
18
19 public String JavaDoc getMessageBody(Message mesg)
20       throws ImapWebException;
21 public Message getMessage(Folder folder, long uid)
22       throws ImapWebException;
23 public Message getMessage(Store imapStore,
24       String JavaDoc folderName, long uid) throws ImapWebException ;
25 public Message forwardMessage(Session imapSession, Store imapStore,
26       String JavaDoc folderName, long uid, boolean isInline)
27       throws ImapWebException;
28 public Message replyMessage(Session imapSession, Store imapStore,
29       String JavaDoc folderName, long uid, boolean replyAll, boolean quoteOrig)
30       throws ImapWebException;
31 public void sendMessage(Store imapStore, Session imapSession, URLName imapURL,
32       String JavaDoc imapDomain,
33       String JavaDoc to, String JavaDoc subject, String JavaDoc cc, String JavaDoc bcc, String JavaDoc message,
34       Vector JavaDoc attachments, boolean isInline, boolean saveCopy,
35       boolean isForwardAttach, String JavaDoc origFolderName, long origUid)
36       throws ImapWebException;
37 public void deleteMessage(Store imapStore,
38       String JavaDoc folderName, long[] uidArr) throws ImapWebException;
39 public void moveMessage(Store imapStore, String JavaDoc folderName,
40       long[] uidArr, String JavaDoc targetFolderName) throws ImapWebException;
41 public Part getMessagePart(Session imapSession, Store imapStore,
42       String JavaDoc folderName, long uid, String JavaDoc partIdList) throws ImapWebException;
43 public Vector JavaDoc getFolderNames(Store imapStore, String JavaDoc currentFolder)
44       throws ImapWebException;
45 public void createFolder(Store imapStore, String JavaDoc name)
46       throws ImapWebException;
47 public void renameFolder(Store imapStore, String JavaDoc folderName, String JavaDoc name)
48       throws ImapWebException;
49 public void removeFolder(Store imapStore, String JavaDoc folderName)
50       throws ImapWebException;
51 }
52
53
54
55
56
57
Popular Tags