KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > module > ServletDefinition


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2005 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 /**
14  *
15  * Magnolia and its source-code is licensed under the LGPL.
16  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
17  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
18  * you are required to provide proper attribution to obinary.
19  * If you reproduce or distribute the document without making any substantive modifications to its content,
20  * please use the following attribution line:
21  *
22  * Copyright 1993-2005 obinary Ltd. (http://www.obinary.com) All rights reserved.
23  */

24 package info.magnolia.cms.module;
25
26 import java.util.ArrayList JavaDoc;
27 import java.util.Collection JavaDoc;
28
29
30 /**
31  * @author Philipp Bracher
32  * @version $Revision: 6341 $ ($Author: philipp $)
33  */

34 public class ServletDefinition {
35
36     /**
37      * The name of the servlet
38      */

39     private String JavaDoc name;
40
41     /**
42      * The class name of the servlet
43      */

44     private String JavaDoc className;
45
46     /**
47      * Comment added to this servlet
48      */

49     private String JavaDoc comment;
50
51     /**
52      * The mapping used for this servlet
53      */

54     private Collection JavaDoc mappings = new ArrayList JavaDoc();
55
56     /**
57      * The mapping used for this servlet
58      */

59     private Collection JavaDoc params = new ArrayList JavaDoc();
60
61     /**
62      * @return Returns the className.
63      */

64     public String JavaDoc getClassName() {
65         return this.className;
66     }
67
68     /**
69      * @param className The className to set.
70      */

71     public void setClassName(String JavaDoc className) {
72         this.className = className;
73     }
74
75     /**
76      * @return Returns the name.
77      */

78     public String JavaDoc getName() {
79         return this.name;
80     }
81
82     /**
83      * @param name The name to set.
84      */

85     public void setName(String JavaDoc name) {
86         this.name = name;
87     }
88
89     /**
90      * @return Returns the mappings.
91      */

92     public Collection JavaDoc getMappings() {
93         return this.mappings;
94     }
95
96     /**
97      * Add a mapping to the mappings list
98      * @param mapping
99      */

100     public void addMapping(String JavaDoc mapping) {
101         this.mappings.add(mapping);
102     }
103
104     /**
105      * @return Returns the parameters.
106      */

107     public Collection JavaDoc getParams() {
108         return this.params;
109     }
110
111     public void addParam(ServletParameterDefinition param) {
112         this.params.add(param);
113     }
114
115     /**
116      * @return Returns the comment.
117      */

118     public String JavaDoc getComment() {
119         return comment;
120     }
121
122     /**
123      * @param comment The comment to set.
124      */

125     public void setComment(String JavaDoc comment) {
126         this.comment = comment;
127     }
128
129 }
130
Popular Tags