KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > webapps_deployer > orion > Web_App_Element


1 //
2
// ____.
3
// __/\ ______| |__/\. _______
4
// __ .____| | \ | +----+ \
5
// _______| /--| | | - \ _ | : - \_________
6
// \\______: :---| : : | : | \________>
7
// |__\---\_____________:______: :____|____:_____\
8
// /_____|
9
//
10
// . . . i n j a h i a w e t r u s t . . .
11
//
12
//
13
//
14
// Web_App_Element
15
//
16
// NK 29.01.2001
17
//
18
//
19

20 package org.jahia.services.webapps_deployer.orion;
21
22
23 /**
24  * Holds Informations about the <web-app> element in orion default-web-site.xml file
25  *
26  * @author Khue ng
27  * @version 1.0
28  */

29 public class Web_App_Element {
30
31     /** The application attribute * */
32     private String JavaDoc m_Application;
33     /** The root attribute * */
34     private String JavaDoc m_Root;
35     /** The name attribute * */
36     private String JavaDoc m_Name;
37     /** The load-on-startup attribute * */
38     private String JavaDoc m_LoadOnStartup;
39     /** The shared attribute * */
40     private String JavaDoc m_Shared;
41     /** The max-inactivity-time attribute * */
42     private String JavaDoc m_MaxInactivityTime;
43
44
45     /**
46      * Constructor
47      */

48     public Web_App_Element (String JavaDoc application,
49                             String JavaDoc root,
50                             String JavaDoc name,
51                             String JavaDoc loadOnStartup,
52                             String JavaDoc shared,
53                             String JavaDoc maxInactivityTime
54                             ) {
55
56         m_Application = application;
57         m_Root = root;
58         m_Name = name;
59         m_LoadOnStartup = loadOnStartup;
60         m_Shared = shared;
61         m_MaxInactivityTime = maxInactivityTime;
62     }
63
64
65     /**
66      * Return the Application Att.
67      *
68      * @return (String) the Application Att.
69      */

70     public String JavaDoc getApplication () {
71
72         return m_Application;
73     }
74
75
76     /**
77      * Set the Application Att.
78      *
79      * @param (String) the Application Att.
80      */

81     public void setApplication (String JavaDoc application) {
82
83         m_Application = application;
84     }
85
86
87     /**
88      * Return the Root Att.
89      *
90      * @return (String) the Root Att.
91      */

92     public String JavaDoc getRoot () {
93
94         return m_Root;
95     }
96
97
98     /**
99      * Set the Root Att.
100      *
101      * @param (String) the Root Att.
102      */

103     public void setRoot (String JavaDoc root) {
104
105         m_Root = root;
106     }
107
108
109     /**
110      * Return the Name Att.
111      *
112      * @return (String) the Name Att.
113      */

114     public String JavaDoc getName () {
115
116         return m_Name;
117     }
118
119     /**
120      * Set the Name Att.
121      *
122      * @param (String) the Name Att.
123      */

124     public void setName (String JavaDoc value) {
125
126         m_Name = value;
127     }
128
129
130     /**
131      * Set the load-on-startup Att.
132      *
133      * @param (String) the value.
134      */

135     public void setLoadOnStartup (String JavaDoc value) {
136
137         m_LoadOnStartup = value;
138     }
139
140     /**
141      * Return the load-on-startup value
142      *
143      * @return (String) load-on-startup
144      */

145     public String JavaDoc getLoadOnStartup () {
146
147         return m_LoadOnStartup;
148     }
149
150
151     /**
152      * Return the Shared Att.
153      *
154      * @return (String) the Shared
155      */

156     public String JavaDoc getShared () {
157
158         return m_Shared;
159     }
160
161
162     /**
163      * Set the Shared Att.
164      *
165      * @param (String) the Shared Att.
166      */

167     public void setShared (String JavaDoc shared) {
168
169         m_Shared = shared;
170     }
171
172
173     /**
174      * Return the Max-Inactivity-Time
175      *
176      * @return (String) Max-Inactivity-Time
177      */

178     public String JavaDoc getMaxInactivityTime () {
179
180         return m_MaxInactivityTime;
181     }
182
183
184     /**
185      * Set the Max-Inactivity-Time Att.
186      *
187      * @param (String) the Max-Inactivity-Time Att.
188      */

189     public void setMaxInactivityTime (String JavaDoc maxInactivityTime) {
190
191         m_MaxInactivityTime = maxInactivityTime;
192     }
193
194
195 } // end Web_App_Element
196
Popular Tags