01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.pluto.descriptors.servlet;
18:
19: import org.apache.pluto.descriptors.common.IconDD;
20:
21: import java.util.List;
22:
23: /**
24: * Filter DD() uration as contained within the
25: * web.xml Deployment Descriptor.
26: *
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: }
|