KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > webapp > admin > resources > ResourceLinksForm


1 /*
2  * Copyright 2002,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
17 package org.apache.webapp.admin.resources;
18
19 import javax.servlet.http.HttpServletRequest JavaDoc;
20 import org.apache.struts.action.ActionError;
21 import org.apache.struts.action.ActionErrors;
22 import org.apache.struts.action.ActionForm;
23 import org.apache.struts.action.ActionMapping;
24
25
26 /**
27  * Form bean for the delete resource links page.
28  *
29  * @author Amy Roh
30  * @version $Revision: 1.3 $ $Date: 2004/02/27 14:59:04 $
31  * @since 4.1
32  */

33
34 public final class ResourceLinksForm extends BaseForm {
35
36
37     // ----------------------------------------------------- Instance Variables
38

39
40     // ------------------------------------------------------------- Properties
41

42
43     /**
44      * The object names of the specified resource links.
45      */

46     private String JavaDoc resourceLinks[] = null;
47
48     public String JavaDoc[] getResourceLinks() {
49         return (this.resourceLinks);
50     }
51
52     public void setResourceLinks(String JavaDoc resourceLinks[]) {
53         this.resourceLinks = resourceLinks;
54     }
55     
56     
57     /**
58      * The resource type of this resource link.
59      */

60     private String JavaDoc resourcetype = null;
61     
62     /**
63      * Return the resource type of the resource link this bean refers to.
64      */

65     public String JavaDoc getResourcetype() {
66         return this.resourcetype;
67     }
68
69     /**
70      * Set the resource type of the resource link this bean refers to.
71      */

72     public void setResourcetype(String JavaDoc resourcetype) {
73         this.resourcetype = resourcetype;
74     }
75        
76     /**
77      * The path of this resource link.
78      */

79     private String JavaDoc path = null;
80     
81     /**
82      * Return the path of the resource link this bean refers to.
83      */

84     public String JavaDoc getPath() {
85         return this.path;
86     }
87
88     /**
89      * Set the path of the resource link this bean refers to.
90      */

91     public void setPath(String JavaDoc path) {
92         this.path = path;
93     }
94        
95     /**
96      * The host of this resource link.
97      */

98     private String JavaDoc host = null;
99     
100     /**
101      * Return the host of the resource link this bean refers to.
102      */

103     public String JavaDoc getHost() {
104         return this.host;
105     }
106
107     /**
108      * Set the host of the resource link this bean refers to.
109      */

110     public void setHost(String JavaDoc host) {
111         this.host = host;
112     }
113     
114        
115     /**
116      * The domain of this resource link.
117      */

118     private String JavaDoc domain = null;
119     
120     /**
121      * Return the domain of the resource link this bean refers to.
122      */

123     public String JavaDoc getDomain() {
124         return this.domain;
125     }
126
127     /**
128      * Set the domain of the resource link this bean refers to.
129      */

130     public void setDomain(String JavaDoc domain) {
131         this.domain = domain;
132     }
133
134     // --------------------------------------------------------- Public Methods
135

136
137     /**
138      * Reset all properties to their default values.
139      *
140      * @param mapping The mapping used to select this instance
141      * @param request The servlet request we are processing
142      */

143     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
144
145         super.reset(mapping, request);
146         this.resourceLinks = null;
147
148     }
149
150
151 }
152
Popular Tags