org.apache.james.mime4j.message
Interface Body

All Superinterfaces:
Disposable
All Known Implementing Classes:
BinaryBody, Message, Multipart, SingleBody, TextBody

public interface Body
extends Disposable

Encapsulates the body of an entity (see RFC 2045).

A body can be a Message, a Multipart or a SingleBody. This interface should not be implemented directly by classes other than those.


Method Summary
 Entity getParent()
          Gets the parent of this body.
 void setParent(Entity parent)
          Sets the parent of this body.
 
Methods inherited from interface org.apache.james.mime4j.message.Disposable
dispose
 

Method Detail

getParent

Entity getParent()
Gets the parent of this body.

Returns:
the parent.

setParent

void setParent(Entity parent)
Sets the parent of this body.

Parameters:
parent - the parent.


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.