KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > suberic > pooka > cache > FolderProxy


1 package net.suberic.pooka.cache;
2
3 import javax.mail.*;
4
5 import net.suberic.pooka.Pooka;
6
7 public class FolderProxy extends javax.mail.Folder JavaDoc {
8   String JavaDoc folderName;
9
10   public FolderProxy(String JavaDoc name) {
11     super(null);
12     folderName = name;
13   }
14   public String JavaDoc getName() {
15     return folderName;
16   }
17   public String JavaDoc getFullName() {
18     return folderName;
19   }
20   
21   public Folder getParent() throws MessagingException { throw new MessagingException(Pooka.getProperty("error.folderNotAvailable", "Folder not loaded.")); }
22
23      public boolean exists() throws MessagingException { throw new MessagingException(Pooka.getProperty("error.folderNotAvailable", "Folder not loaded.")); }
24
25    public Folder[] list(String JavaDoc pattern) throws MessagingException { throw new MessagingException(Pooka.getProperty("error.folderNotAvailable", "Folder not loaded.")); }
26
27    public int getType() throws MessagingException { throw new MessagingException(Pooka.getProperty("error.folderNotAvailable", "Folder not loaded.")); }
28
29     public char getSeparator() throws MessagingException { throw new MessagingException(Pooka.getProperty("error.folderNotAvailable", "Folder not loaded.")); }
30     public boolean create(int type) throws MessagingException { throw new MessagingException(Pooka.getProperty("error.folderNotAvailable", "Folder not loaded.")); }
31
32    public boolean hasNewMessages() throws MessagingException { throw new MessagingException(Pooka.getProperty("error.folderNotAvailable", "Folder not loaded.")); }
33
34      public Folder getFolder(String JavaDoc name)
35                 throws MessagingException { throw new MessagingException(Pooka.getProperty("error.folderNotAvailable", "Folder not loaded.")); }
36    public boolean delete(boolean recurse)
37                 throws MessagingException { throw new MessagingException(Pooka.getProperty("error.folderNotAvailable", "Folder not loaded.")); }
38
39  public boolean renameTo(Folder f) throws MessagingException { throw new MessagingException(Pooka.getProperty("error.folderNotAvailable", "Folder not loaded.")); }
40
41 public void open(int mode) throws MessagingException { throw new MessagingException(Pooka.getProperty("error.folderNotAvailable", "Folder not loaded.")); }
42   public void close(boolean expunge) throws MessagingException { throw new MessagingException(Pooka.getProperty("error.folderNotAvailable", "Folder not loaded.")); }
43
44   public boolean isOpen() {
45     return false;
46   }
47   public Flags getPermanentFlags() {
48     return null;
49   }
50   public int getMessageCount() throws MessagingException { throw new MessagingException(Pooka.getProperty("error.folderNotAvailable", "Folder not loaded.")); }
51   public Message getMessage(int msgnum)
52                 throws MessagingException { throw new MessagingException(Pooka.getProperty("error.folderNotAvailable", "Folder not loaded.")); }
53
54   public void appendMessages(Message[] msgs)
55     throws MessagingException { throw new MessagingException(Pooka.getProperty("error.folderNotAvailable", "Folder not loaded.")); }
56
57   public Message[] expunge() throws MessagingException { throw new MessagingException(Pooka.getProperty("error.folderNotAvailable", "Folder not loaded.")); }
58
59 }
60
Popular Tags