KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > model > services > actions > MailActionInfo


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13 package org.ejbca.core.model.services.actions;
14
15 import org.ejbca.core.model.services.ActionInfo;
16
17 /**
18  * Class containing information that is sent between a worker and
19  * the MailAction action.
20  *
21  *
22  * @author Philip Vendil
23  *
24  * $id$
25  */

26 public class MailActionInfo implements ActionInfo {
27     
28     private String JavaDoc reciever = null;
29     private String JavaDoc subject = null;
30     private String JavaDoc message = null;
31     
32     
33     /**
34      * Constructor used to create a MailActionInfo
35      *
36      * @param reciever the reciever of the message, if null will the MailAction configured reciever be used.
37      * @param subject the subject of the mail
38      * @param message the message of the mail.
39      */

40     public MailActionInfo(String JavaDoc reciever, String JavaDoc subject, String JavaDoc message) {
41         super();
42         this.reciever = reciever;
43         this.subject = subject;
44         this.message = message;
45     }
46
47    /**
48     * @return the message of the mail.
49     */

50     public String JavaDoc getMessage() {
51         return message;
52     }
53
54     /**
55      *
56      * @return the reciever of the message, if null will the MailAction configured reciever be used.
57      */

58
59     public String JavaDoc getReciever() {
60         return reciever;
61     }
62
63     /**
64      * @return the subject of the mail
65      */

66     public String JavaDoc getSubject() {
67         return subject;
68     }
69     
70     
71
72 }
73
Popular Tags