View Javadoc

1   /*
2    * Copyright 2001-2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.jdiagnose.library.smtp;
17  
18  /***
19   * @author jmccrindle
20   */
21  public class SmtpConfig {
22      
23      private String from;
24      private String[] to;
25      private String subject;
26      private boolean enabled;
27      
28      public boolean isEnabled() {
29          return enabled;
30      }
31      public void setEnabled(boolean enabled) {
32          this.enabled = enabled;
33      }
34      public String getFrom() {
35          return from;
36      }
37      public void setFrom(String from) {
38          this.from = from;
39      }
40      public String getSubject() {
41          return subject;
42      }
43      public void setSubject(String subject) {
44          this.subject = subject;
45      }
46      public String[] getTo() {
47          return to;
48      }
49      public void setTo(String[] to) {
50          this.to = to;
51      }
52  }