1 21 22 27 28 package com.sun.mail.imap; 29 30 import java.io.*; 31 import javax.mail.*; 32 import com.sun.mail.imap.protocol.*; 33 34 39 40 public class IMAPNestedMessage extends IMAPMessage { 41 private IMAPMessage msg; 43 49 IMAPNestedMessage(IMAPMessage m, BODYSTRUCTURE b, ENVELOPE e, String sid) { 50 super(m._getSession()); 51 msg = m; 52 bs = b; 53 envelope = e; 54 sectionId = sid; 55 } 56 57 61 protected IMAPProtocol getProtocol() throws FolderClosedException { 62 return msg.getProtocol(); 63 } 64 65 69 protected Object getMessageCacheLock() { 70 return msg.getMessageCacheLock(); 71 } 72 73 77 protected int getSequenceNumber() { 78 return msg.getSequenceNumber(); 79 } 80 81 85 protected void checkExpunged() throws MessageRemovedException { 86 msg.checkExpunged(); 87 } 88 89 93 public boolean isExpunged() { 94 return msg.isExpunged(); 95 } 96 97 100 protected int getFetchBlockSize() { 101 return msg.getFetchBlockSize(); 102 } 103 104 108 public int getSize() throws MessagingException { 109 return bs.size; 110 } 111 112 115 public synchronized void setFlags(Flags flag, boolean set) 116 throws MessagingException { 117 throw new MethodNotSupportedException( 119 "Cannot set flags on this nested message"); 120 } 121 } 122 | Popular Tags |