KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > core > LicenseAgreement


1 /*
2  * SSL-Explorer
3  *
4  * Copyright (C) 2003-2006 3SP LTD. All Rights Reserved
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */

19             
20 package com.sslexplorer.core;
21
22 import java.io.File JavaDoc;
23
24 import org.apache.struts.action.ActionForward;
25
26 import com.sslexplorer.setup.LicenseAgreementCallback;
27
28 /**
29  * @author Brett Smith <brett@3sp.com>
30  */

31 public class LicenseAgreement {
32     
33     private String JavaDoc title;
34     private File JavaDoc licenseTextFile;
35     private LicenseAgreementCallback callback;
36     private ActionForward returnTo;
37     
38     public LicenseAgreement(String JavaDoc title, File JavaDoc licenseTextFile, LicenseAgreementCallback callback, ActionForward returnTo) {
39         this.title = title;
40         this.licenseTextFile = licenseTextFile;
41         this.callback = callback;
42         this.returnTo = returnTo;
43     }
44
45     /**
46      * @return Returns the callback.
47      */

48     public LicenseAgreementCallback getCallback() {
49         return callback;
50     }
51     /**
52      * @param callback The callback to set.
53      */

54     public void setCallback(LicenseAgreementCallback callback) {
55         this.callback = callback;
56     }
57     /**
58      * @return Returns the licenseTextFile.
59      */

60     public File JavaDoc getLicenseTextFile() {
61         return licenseTextFile;
62     }
63     /**
64      * @param licenseTextFile The licenseTextFile to set.
65      */

66     public void setLicenseTextFile(File JavaDoc licenseTextFile) {
67         this.licenseTextFile = licenseTextFile;
68     }
69     /**
70      * @return Returns the title.
71      */

72     public String JavaDoc getTitle() {
73         return title;
74     }
75     /**
76      * @param title The title to set.
77      */

78     public void setTitle(String JavaDoc title) {
79         this.title = title;
80     }
81     /**
82      * @return Returns the returnTo.
83      */

84     public ActionForward getReturnTo() {
85         return returnTo;
86     }
87     /**
88      * @param returnTo The returnTo to set.
89      */

90     public void setReturnTo(ActionForward returnTo) {
91         this.returnTo = returnTo;
92     }
93 }
94
Popular Tags