View Javadoc

1   /*
2    * Copyright 2005 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  package org.apache.pluto.descriptors.servlet;
17  
18  import java.util.ArrayList;
19  import java.util.List;
20  
21  import org.apache.pluto.descriptors.common.IconDD;
22  
23  /***
24   * Filter DD() uration as contained within the
25   * web.xml Deployment Descriptor.
26   *
27   * @author <a href="ddewolf@apache.org">David H. DeWolf</a>
28   * @version $Id: ServletDD.java 156743 2005-03-10 05:50:30Z ddewolf $
29   * @since Feb 28, 2005
30   */
31  public class ServletDD {
32  
33      private String servletName;
34      private String servletClass;
35      private String displayName;
36      private String description;
37      private String jspFile;
38      private LoadOnStartupDD loadOnStartup;
39      
40      private IconDD icon;
41      private List initParams = new ArrayList();
42      private List securityRoleRefs = new ArrayList();
43  
44      public ServletDD() {
45  
46      }
47  
48      public String getServletName() {
49          return servletName;
50      }
51  
52      public void setServletName(String servletName) {
53          this.servletName = servletName;
54      }
55  
56      public String getServletClass() {
57          return servletClass;
58      }
59  
60      public void setServletClass(String servletClass) {
61          this.servletClass = servletClass;
62      }
63  
64      public String getDisplayName() {
65          return displayName;
66      }
67  
68      public void setDisplayName(String displayName) {
69          this.displayName = displayName;
70      }
71  
72      public String getJspFile() {
73          return jspFile;
74      }
75  
76      public void setJspFile(String jspFile) {
77          this.jspFile = jspFile;
78      }
79  
80      public LoadOnStartupDD getLoadOnStartup() {
81          return loadOnStartup;
82      }
83  
84      public void setLoadOnStartup(LoadOnStartupDD loadOnStartup) {
85          this.loadOnStartup = loadOnStartup;
86      }
87  
88      public String getDescription() {
89          return description;
90      }
91  
92      public void setDescription(String description) {
93          this.description = description;
94      }
95  
96      public IconDD getIcon() {
97          return icon;
98      }
99  
100     public void setIcon(IconDD icon) {
101         this.icon = icon;
102     }
103 
104     public List getInitParams() {
105         return initParams;
106     }
107 
108     public void setInitParams(List initParams) {
109         this.initParams = initParams;
110     }
111 
112     public List getSecurityRoleRefs() {
113         return securityRoleRefs;
114     }
115 
116     public void setSecurityRoleRefs(List securityRoleRefs) {
117         this.securityRoleRefs = securityRoleRefs;
118     }
119 
120 }
121