\Swift_Mime_MimeEntity
A MIME entity, such as an attachment.
- Author: Chris Corbyn
Synopsis
interface Swift_Mime_MimeEntity
extends Swift_Mime_CharsetObserver, Swift_Mime_EncodingObserver
{
- // constants
- const LEVEL_TOP = 16;
- const LEVEL_MIXED = 256;
- const LEVEL_ALTERNATIVE = 4096;
- const LEVEL_RELATED = 65536;
- // methods
- public int getNestingLevel()
- public string getContentType()
- public string getId()
- public array getChildren()
- public void setChildren()
- public array getHeaders()
- public string|null getBody()
- public void setBody()
- public string toString()
- public void toByteStream()
- // Inherited methods from Swift_Mime_CharsetObserver
- public void charsetChanged()
- // Inherited methods from Swift_Mime_EncodingObserver
- public void encoderChanged()
Hierarchy
Extends
Extended by
Implemented by
Constants
Name | Value |
---|---|
LEVEL_TOP | 16 |
LEVEL_MIXED | 256 |
LEVEL_ALTERNATIVE | 4096 |
LEVEL_RELATED | 65536 |
Methods
public
- getBody() — Get the body content of this entity as a string.
- getChildren() — Get all children nested inside this entity.
- getContentType() — Get the qualified content-type of this mime entity.
- getHeaders() — Get the collection of Headers in this Mime entity.
- getId() — Returns a unique ID for this entity.
- getNestingLevel() — Get the level at which this entity shall be nested in final document.
- setBody() — Set the body content of this entity as a string.
- setChildren() — Set all children nested inside this entity.
- toByteStream() — Get this entire entity as a ByteStream.
- toString() — Get this entire entity in its string form.
Inherited from Swift_Mime_CharsetObserver
public
- charsetChanged() — Notify this observer that the entity's charset has changed.
Inherited from Swift_Mime_EncodingObserver
public
- encoderChanged() — Notify this observer that the observed entity's ContentEncoder has changed.