KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > sample > samplewizard > forms > SampleDetailsForm


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.sample.samplewizard.forms;
21
22 import javax.servlet.http.HttpServletRequest JavaDoc;
23
24 import org.apache.commons.logging.Log;
25 import org.apache.commons.logging.LogFactory;
26
27 import com.sslexplorer.policyframework.Resource;
28 import com.sslexplorer.wizard.AbstractWizardSequence;
29 import com.sslexplorer.wizard.forms.DefaultWizardForm;
30
31 /**
32  * <p>
33  * The form for all other attributes associated with the TunneledSite resource.
34  *
35  * @author James D Robinson <a HREF="mailto:james@3sp.com">&lt;james@3sp.com&gt;</a>
36  *
37  */

38 public class SampleDetailsForm extends DefaultWizardForm {
39
40     final static Log log = LogFactory.getLog(SampleDetailsForm.class);
41
42     // TODO sampleAttributes attributes should be defined here.
43

44     /**
45      * Constructor
46      */

47     public SampleDetailsForm() {
48         super(true, true, "/WEB-INF/jsp/content/sample/samplewizard/sampleDetails.jspf", "resourceName", true, false,
49                         "sampleDetails", "sample", "samplewizard.sampleDetails", 2);
50     }
51
52     /*
53      * (non-Javadoc)
54      *
55      * @see com.sslexplorer.wizard.forms.AbstractWizardForm#init(com.sslexplorer.wizard.AbstractWizardSequence,
56      * javax.servlet.http.HttpServletRequest)
57      */

58     public void init(AbstractWizardSequence sequence, HttpServletRequest JavaDoc request) throws Exception JavaDoc {
59         super.init(sequence, request);
60         // TODO sampleAttribute = ((Integer) sequence.getAttribute(ATTR_SAMPLE,
61
// ""));
62

63     }
64
65     /*
66      * (non-Javadoc)
67      *
68      * @see com.sslexplorer.wizard.forms.AbstractWizardForm#apply(com.sslexplorer.wizard.AbstractWizardSequence)
69      */

70     public void apply(AbstractWizardSequence sequence) throws Exception JavaDoc {
71         super.apply(sequence);
72         // TODO sequence.putAttribute(ATTR_SAMPLE, sampleAttribute);
73
}
74
75     public void parentResourcePermissionChanged(AbstractWizardSequence sequence) {
76         // TODO Auto-generated method stub
77

78     }
79
80     public Resource getResourceByName(String JavaDoc name) throws Exception JavaDoc {
81         // TODO Auto-generated method stub
82
return null;
83     }
84 }
85
Popular Tags