KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > data > webapps > Web_Component


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_Component
15
//
16
// NK 29.01.2001
17
//
18
//
19

20 package org.jahia.data.webapps;
21
22
23
24
25 /**
26  * Holds Informations about the <web> components element in the descriptors file
27  * application.xml ( J2EE Standard )
28  *
29  * <application>
30  * <display-name>filemanager.ear</display-name>
31  * <desc>Application desc</desc>
32  * <module>
33  *
34  * <web>
35  * <web-uri>war-ic.war</web-uri>
36  * <context-root>filemanager</context-root>
37  * </web>
38  *
39  * </module>
40  * </application>
41  *
42  *
43  * @author Khue ng
44  * @version 1.0
45  */

46 public class Web_Component {
47
48    /** The web-uri **/
49    private String JavaDoc m_WebURI;
50    /** The context-root **/
51    private String JavaDoc m_ContextRoot;
52
53    /**
54     * Constructor
55     *
56     * @param (String) path, the full path to the application.xml file
57     */

58     public Web_Component( String JavaDoc webURI,
59                           String JavaDoc contextRoot
60                         ){
61
62        m_WebURI = webURI;
63        m_ContextRoot = contextRoot;
64
65     }
66
67
68    /**
69     * Return the webURI
70     *
71     * @return (String) the web URI
72     */

73    public String JavaDoc getWebURI(){
74
75       return m_WebURI;
76    }
77
78
79    /**
80     * Return the Context Root
81     *
82     * @return (String) the Context Root
83     */

84    public String JavaDoc getContextRoot(){
85
86       return m_ContextRoot;
87    }
88
89
90 } // end Web_Component
91
Popular Tags