FileDocCategorySizeDatePackage
IMAPNestedMessage.javaAPI DocGlassfish v2 API4466Mon May 14 15:28:44 BST 2007com.sun.mail.imap

IMAPNestedMessage

public class IMAPNestedMessage extends IMAPMessage
This class implements a nested IMAP message
author
John Mani

Fields Summary
private IMAPMessage
msg
Constructors Summary
IMAPNestedMessage(IMAPMessage m, BODYSTRUCTURE b, ENVELOPE e, String sid)
Package private constructor.

Note that nested messages have no containing folder, nor a message number.

	super(m._getSession());
	msg = m;
	bs = b;
	envelope = e;
	sectionId = sid;
    
Methods Summary
protected voidcheckExpunged()

	msg.checkExpunged();
    
protected intgetFetchBlockSize()

	return msg.getFetchBlockSize();
    
protected java.lang.ObjectgetMessageCacheLock()

	return msg.getMessageCacheLock();
    
protected com.sun.mail.imap.protocol.IMAPProtocolgetProtocol()

	return msg.getProtocol();
    
protected intgetSequenceNumber()

	return msg.getSequenceNumber();
    
public intgetSize()

	return bs.size;
    
public booleanisExpunged()

	return msg.isExpunged();
    
protected booleanisREV1()

	return msg.isREV1();
    
public synchronized voidsetFlags(javax.mail.Flags flag, boolean set)

	// Cannot set FLAGS on a nested IMAP message	
	throw new MethodNotSupportedException(
		"Cannot set flags on this nested message");