1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.core.mail;
17
18
19
20
21
22
23 public class EmailContent {
24 private String subject;
25 private String body;
26 private boolean html;
27
28 public EmailContent() {}
29
30 public EmailContent(String subject, String body) {
31 this.subject = subject;
32 this.body = body;
33 }
34
35 public EmailContent(String subject, String body, boolean html) {
36 this.subject = subject;
37 this.body = body;
38 this.html = html;
39 }
40
41 public void setSubject(String subject) {
42 this.subject = subject;
43 }
44
45 public String getSubject() {
46 return subject;
47 }
48
49 public void setBody(String body, boolean html) {
50 this.body = body;
51 this.html = html;
52 }
53
54 public String getBody() {
55 return body;
56 }
57
58 public boolean isHtml() {
59 return html;
60 }
61
62 public String toString() {
63 return "[EmailContent: subject=" + subject + ", body=" + body + ", html=" + html + "]";
64 }
65 }