MCPcopy Create free account
hub / github.com/M66B/FairEmail / BodyPart

Class BodyPart

app/src/main/java/javax/mail/BodyPart.java:30–60  ·  view source on GitHub ↗

This class models a Part that is contained within a Multipart. This is an abstract class. Subclasses provide actual implementations. BodyPart implements the Part interface. Thus, it contains a set of attributes and a "content". @author John Mani @author Bill Shannon

Source from the content-addressed store, hash-verified

28 */
29
30public abstract class BodyPart implements Part {
31
32 /**
33 * The <code>Multipart</code> object containing this <code>BodyPart</code>,
34 * if known.
35 * @since JavaMail 1.1
36 */
37 protected Multipart parent;
38
39 /**
40 * Return the containing <code>Multipart</code> object,
41 * or <code>null</code> if not known.
42 *
43 * @return the parent Multipart
44 */
45 public Multipart getParent() {
46 return parent;
47 }
48
49 /**
50 * Set the parent of this <code>BodyPart</code> to be the specified
51 * <code>Multipart</code>. Normally called by <code>Multipart</code>'s
52 * <code>addBodyPart</code> method. <code>parent</code> may be
53 * <code>null</code> if the <code>BodyPart</code> is being removed
54 * from its containing <code>Multipart</code>.
55 * @since JavaMail 1.1
56 */
57 void setParent(Multipart parent) {
58 this.parent = parent;
59 }
60}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected