Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Licensed to the Apache Software Foundation (ASF) under one or more
   * contributor license agreements.  See the NOTICE file distributed with
   * this work for additional information regarding copyright ownership.
   * The ASF licenses this file to You under the Apache License, Version 2.0
   * (the "License"); you may not use this file except in compliance with
   * the License.  You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
  * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 
 
 package org.apache.catalina.deploy;
 
 
 import java.util.Map;
Representation of a filter definition for a web application, as represented in a <filter> element in the deployment descriptor.

Author(s):
Craig R. McClanahan
Version:
$Revision: 1332 $ $Date: 2009-12-11 17:41:24 +0100 (Fri, 11 Dec 2009) $
 
 
 public class FilterDef implements Serializable {
 
 
     private static final long serialVersionUID = 8703643991210305617L;
 
 
     // ------------------------------------------------------------- Properties
 

    
Async supported.
 
     private boolean asyncSupported = false;
 
     public boolean getAsyncSupported() {
         return (this.);
     }
 
     public void setAsyncSupported(boolean asyncSupported) {
         this. = asyncSupported;
     }


    
The description of this filter.
 
     private String description = null;
 
     public String getDescription() {
         return (this.);
     }
 
     public void setDescription(String description) {
         this. = description;
     }


    
The display name of this filter.
 
     private String displayName = null;
 
     public String getDisplayName() {
         return (this.);
     }
 
     public void setDisplayName(String displayName) {
         this. = displayName;
     }


    
The fully qualified name of the Java class that implements this filter.
 
     private String filterClass = null;
 
     public String getFilterClass() {
         return (this.);
     }
 
     public void setFilterClass(String filterClass) {
         this. = filterClass;
     }


    
The name of this filter, which must be unique among the filters defined for a particular web application.
    private String filterName = null;
    public String getFilterName() {
        return (this.);
    }
    public void setFilterName(String filterName) {
        this. = filterName;
    }


    
The large icon associated with this filter.
    private String largeIcon = null;
    public String getLargeIcon() {
        return (this.);
    }
    public void setLargeIcon(String largeIcon) {
        this. = largeIcon;
    }


    
The set of initialization parameters for this filter, keyed by parameter name.
    private Map<StringStringparameters = new HashMap<StringString>();
    public Map<StringStringgetParameterMap() {
        return (this.);
    }


    
The small icon associated with this filter.
    private String smallIcon = null;
    public String getSmallIcon() {
        return (this.);
    }
    public void setSmallIcon(String smallIcon) {
        this. = smallIcon;
    }
    // --------------------------------------------------------- Public Methods


    
Add an initialization parameter to the set of parameters associated with this filter.

Parameters:
name The initialization parameter name
value The initialization parameter value
    public void addInitParameter(String nameString value) {
        if (!.containsKey(name))
            .put(namevalue);
    }


    
Add an initialization parameter to the set of parameters associated with this filter.

Parameters:
name The initialization parameter name
    public String getInitParameter(String name) {
        return .get(name);
    }


    
Render a String representation of this object.
    public String toString() {
        StringBuilder sb = new StringBuilder("FilterDef[");
        sb.append("filterName=");
        sb.append(this.);
        sb.append(", filterClass=");
        sb.append(this.);
        sb.append("]");
        return (sb.toString());
    }
New to GrepCode? Check out our FAQ X