Interface Body

All Superinterfaces:
Disposable
All Known Subinterfaces:
Message, Multipart
All Known Implementing Classes:
AbstractMessage, AbstractMultipart, BasicBodyFactory.BinaryBody1, BasicBodyFactory.BinaryBody2, BasicBodyFactory.BinaryBody3, BasicBodyFactory.StringBody1, BasicBodyFactory.StringBody2, BasicBodyFactory.StringBody3, BinaryBody, MessageImpl, MultipartImpl, SingleBody, StorageBinaryBody, StorageTextBody, StringTextBody, TextBody

public interface Body extends Disposable

A body of an MIME entity (as defined in 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

    Modifier and Type
    Method
    Description
    Gets the parent of this body.
    void
    setParent(Entity parent)
    Sets the parent of this body.

    Methods inherited from interface org.apache.james.mime4j.dom.Disposable

    dispose
  • Method Details

    • 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.