FileDocCategorySizeDatePackage
IMAPNestedMessage.javaAPI DocJavaMail 1.4.34438Tue Nov 17 10:38:10 GMT 2009com.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;
	setPeek(m.getPeek());
    
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");