Class FilterDef
- java.lang.Object
-
- org.apache.tomcat.util.descriptor.web.FilterDef
-
- All Implemented Interfaces:
java.io.Serializable
public class FilterDef extends java.lang.Object implements java.io.SerializableRepresentation of a filter definition for a web application, as represented in a<filter>element in the deployment descriptor.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FilterDef()Default constructor for FilterDef.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInitParameter(java.lang.String name, java.lang.String value)Add an initialization parameter to the set of parameters associated with this filter.java.lang.StringgetAsyncSupported()Returns the async-supported setting for this filter.booleangetAsyncSupportedBoolean()Returns whether async processing is supported for this filter.java.lang.StringgetDescription()Returns the description of this filter.java.lang.StringgetDisplayName()Returns the display name of this filter.FiltergetFilter()Returns the filter instance associated with this definition.java.lang.StringgetFilterClass()Returns the fully qualified name of the Java class that implements this filter.java.lang.StringgetFilterName()Returns the name of this filter.java.lang.StringgetLargeIcon()Returns the large icon associated with this filter.java.util.Map<java.lang.String,java.lang.String>getParameterMap()Returns the set of initialization parameters for this filter, keyed by parameter name.java.lang.StringgetSmallIcon()Returns the small icon associated with this filter.voidsetAsyncSupported(java.lang.String asyncSupported)Sets the async-supported setting for this filter.voidsetDescription(java.lang.String description)Sets the description of this filter.voidsetDisplayName(java.lang.String displayName)Sets the display name of this filter.voidsetFilter(Filter filter)Sets the filter instance associated with this definition.voidsetFilterClass(java.lang.String filterClass)Sets the fully qualified name of the Java class that implements this filter.voidsetFilterName(java.lang.String filterName)Sets the name of this filter, which must be unique among the filters defined for a particular web application.voidsetLargeIcon(java.lang.String largeIcon)Sets the large icon associated with this filter.voidsetSmallIcon(java.lang.String smallIcon)Sets the small icon associated with this filter.java.lang.StringtoString()Render a String representation of this object.
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Returns the description of this filter.- Returns:
- The description
-
setDescription
public void setDescription(java.lang.String description)
Sets the description of this filter.- Parameters:
description- The new description
-
getDisplayName
public java.lang.String getDisplayName()
Returns the display name of this filter.- Returns:
- The display name
-
setDisplayName
public void setDisplayName(java.lang.String displayName)
Sets the display name of this filter.- Parameters:
displayName- The new display name
-
getFilter
public Filter getFilter()
Returns the filter instance associated with this definition.- Returns:
- The filter instance
-
setFilter
public void setFilter(Filter filter)
Sets the filter instance associated with this definition.- Parameters:
filter- The filter instance
-
getFilterClass
public java.lang.String getFilterClass()
Returns the fully qualified name of the Java class that implements this filter.- Returns:
- The filter class name
-
setFilterClass
public void setFilterClass(java.lang.String filterClass)
Sets the fully qualified name of the Java class that implements this filter.- Parameters:
filterClass- The filter class name
-
getFilterName
public java.lang.String getFilterName()
Returns the name of this filter.- Returns:
- The filter name
-
setFilterName
public void setFilterName(java.lang.String filterName)
Sets the name of this filter, which must be unique among the filters defined for a particular web application.- Parameters:
filterName- The new filter name
-
getLargeIcon
public java.lang.String getLargeIcon()
Returns the large icon associated with this filter.- Returns:
- The large icon
-
setLargeIcon
public void setLargeIcon(java.lang.String largeIcon)
Sets the large icon associated with this filter.- Parameters:
largeIcon- The new large icon
-
getParameterMap
public java.util.Map<java.lang.String,java.lang.String> getParameterMap()
Returns the set of initialization parameters for this filter, keyed by parameter name.- Returns:
- The initialization parameter map
-
getSmallIcon
public java.lang.String getSmallIcon()
Returns the small icon associated with this filter.- Returns:
- The small icon
-
setSmallIcon
public void setSmallIcon(java.lang.String smallIcon)
Sets the small icon associated with this filter.- Parameters:
smallIcon- The new small icon
-
getAsyncSupported
public java.lang.String getAsyncSupported()
Returns the async-supported setting for this filter.- Returns:
- The async-supported value
-
setAsyncSupported
public void setAsyncSupported(java.lang.String asyncSupported)
Sets the async-supported setting for this filter.- Parameters:
asyncSupported- The async-supported value
-
getAsyncSupportedBoolean
public boolean getAsyncSupportedBoolean()
Returns whether async processing is supported for this filter.- Returns:
- True if async is supported, false otherwise
-
addInitParameter
public void addInitParameter(java.lang.String name, java.lang.String value)Add an initialization parameter to the set of parameters associated with this filter.- Parameters:
name- The initialization parameter namevalue- The initialization parameter value
-
toString
public java.lang.String toString()
Render a String representation of this object.- Overrides:
toStringin classjava.lang.Object
-
-