Class FilterDef
java.lang.Object
org.apache.tomcat.util.descriptor.web.FilterDef
- All Implemented Interfaces:
Serializable
Representation of a filter definition for a web application, as represented in a
<filter> element
in the deployment descriptor.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInitParameter(String name, String value) Add an initialization parameter to the set of parameters associated with this filter.Returns the async-supported setting for this filter.booleanReturns whether async processing is supported for this filter.Returns the description of this filter.Returns the display name of this filter.Returns the filter instance associated with this definition.Returns the fully qualified name of the Java class that implements this filter.Returns the name of this filter.Returns the large icon associated with this filter.Returns the set of initialization parameters for this filter, keyed by parameter name.Returns the small icon associated with this filter.voidsetAsyncSupported(String asyncSupported) Sets the async-supported setting for this filter.voidsetDescription(String description) Sets the description of this filter.voidsetDisplayName(String displayName) Sets the display name of this filter.voidSets the filter instance associated with this definition.voidsetFilterClass(String filterClass) Sets the fully qualified name of the Java class that implements this filter.voidsetFilterName(String filterName) Sets the name of this filter, which must be unique among the filters defined for a particular web application.voidsetLargeIcon(String largeIcon) Sets the large icon associated with this filter.voidsetSmallIcon(String smallIcon) Sets the small icon associated with this filter.toString()Render a String representation of this object.
-
Constructor Details
-
FilterDef
public FilterDef()Default constructor for FilterDef.
-
-
Method Details
-
getDescription
-
setDescription
Sets the description of this filter.- Parameters:
description- The new description
-
getDisplayName
-
setDisplayName
Sets the display name of this filter.- Parameters:
displayName- The new display name
-
getFilter
Returns the filter instance associated with this definition.- Returns:
- The filter instance
-
setFilter
Sets the filter instance associated with this definition.- Parameters:
filter- The filter instance
-
getFilterClass
Returns the fully qualified name of the Java class that implements this filter.- Returns:
- The filter class name
-
setFilterClass
Sets the fully qualified name of the Java class that implements this filter.- Parameters:
filterClass- The filter class name
-
getFilterName
-
setFilterName
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
Returns the large icon associated with this filter.- Returns:
- The large icon
-
setLargeIcon
Sets the large icon associated with this filter.- Parameters:
largeIcon- The new large icon
-
getParameterMap
-
getSmallIcon
Returns the small icon associated with this filter.- Returns:
- The small icon
-
setSmallIcon
Sets the small icon associated with this filter.- Parameters:
smallIcon- The new small icon
-
getAsyncSupported
Returns the async-supported setting for this filter.- Returns:
- The async-supported value
-
setAsyncSupported
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
-
toString
-