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.List;
19  
20  import org.apache.pluto.descriptors.common.IconDD;
21  
22  /***
23   * Filter DD() uration as contained within the
24   * web.xml Deployment Descriptor.
25   *
26   * @author <a href="ddewolf@apache.org">David H. DeWolf</a>
27   * @version $Id: FilterDD.java 156636 2005-03-09 12:16:31Z cziegeler $
28   * @since Feb 28, 2005
29   */
30  public class FilterDD {
31  
32      private String filterName;
33      private String filterClass;
34      private String displayName;
35  
36      private String description;
37      private IconDD icon;
38      private List initParams;
39  
40      public FilterDD() {
41  
42      }
43  
44      public String getFilterName() {
45          return filterName;
46      }
47  
48      public void setFilterName(String filterName) {
49          this.filterName = filterName;
50      }
51  
52      public String getFilterClass() {
53          return filterClass;
54      }
55  
56      public void setFilterClass(String filterClass) {
57          this.filterClass = filterClass;
58      }
59  
60      public String getDisplayName() {
61          return displayName;
62      }
63  
64      public void setDisplayName(String displayName) {
65          this.displayName = displayName;
66      }
67  
68      public String getDescription() {
69          return description;
70      }
71  
72      public void setDescription(String description) {
73          this.description = description;
74      }
75  
76      public IconDD getIcon() {
77          return icon;
78      }
79  
80      public void setIcon(IconDD icon) {
81          this.icon = icon;
82      }
83  
84      public List getInitParams() {
85          return initParams;
86      }
87  
88      public void setInitParams(List initParams) {
89          this.initParams = initParams;
90      }
91  
92      public boolean isValid() {
93          return filterName != null && filterClass != null;
94      }
95  }
96