public class FilterConfigImpl extends java.lang.Object implements FilterConfig, FilterRegistration.Dynamic
FilterRegistration.Dynamic
Constructor and Description |
---|
FilterConfigImpl()
Creates a new filter configuration object.
|
Modifier and Type | Method and Description |
---|---|
void |
addMappingForServletNames(java.util.EnumSet<DispatcherType> dispatcherTypes,
boolean isMatchAfter,
java.lang.String... servletNames) |
void |
addMappingForUrlPatterns(java.util.EnumSet<DispatcherType> dispatcherTypes,
boolean isMatchAfter,
java.lang.String... urlPatterns) |
java.lang.String |
getClassName() |
java.lang.String |
getDisplayName()
Gets the display name
|
Filter |
getFilter() |
java.lang.Class<?> |
getFilterClass()
Gets the filter name.
|
java.lang.String |
getFilterClassName()
Gets the filter name.
|
FilterManager |
getFilterManager() |
java.lang.String |
getFilterName()
Gets the filter name.
|
ContainerProgram |
getInit()
Gets the init block
|
java.lang.String |
getInitParameter(java.lang.String name)
Gets the init params
|
java.util.Enumeration<java.lang.String> |
getInitParameterNames()
Gets the init params
|
java.util.Map<java.lang.String,java.lang.String> |
getInitParameters() |
java.util.Map<java.lang.String,java.lang.String> |
getInitParamMap()
Gets the init params
|
java.lang.String |
getName() |
ServletContext |
getServletContext()
Returns the servlet context.
|
java.util.Collection<java.lang.String> |
getServletNameMappings() |
java.util.Collection<java.lang.String> |
getUrlPatternMappings() |
boolean |
isAsyncSupported() |
void |
setAsyncSupported(boolean isAsyncSupported) |
void |
setDescription(java.lang.String description)
Sets the description
|
void |
setDisplayName(java.lang.String displayName)
Sets the display name
|
void |
setFilter(Filter filter) |
void |
setFilterClass(java.lang.Class<?> filterClass) |
void |
setFilterClass(java.lang.String filterClassName)
Sets the filter class.
|
void |
setFilterManager(FilterManager filterManager) |
void |
setFilterName(java.lang.String name)
Sets the filter name.
|
void |
setIcon(java.lang.String icon)
Sets the icon
|
void |
setId(java.lang.String id) |
void |
setInit(ContainerProgram init)
Sets the init block
|
void |
setInitParam(InitParam initParam)
Sets an init-param
|
void |
setInitParam(java.lang.String param,
java.lang.String value)
Sets an init-param
|
boolean |
setInitParameter(java.lang.String name,
java.lang.String value) |
java.util.Set<java.lang.String> |
setInitParameters(java.util.Map<java.lang.String,java.lang.String> initParameters) |
void |
setServletContext(ServletContext app)
Sets the servlet context.
|
void |
setWebApp(WebApp webApp) |
java.lang.String |
toString()
Returns a printable representation of the filter config object.
|
public FilterConfigImpl()
public void setId(java.lang.String id)
public void setFilterName(java.lang.String name)
public java.lang.String getFilterName()
getFilterName
in interface FilterConfig
public void setFilterClass(java.lang.String filterClassName) throws ConfigException, java.lang.ClassNotFoundException
ConfigException
java.lang.ClassNotFoundException
@DisableConfig public void setFilterClass(java.lang.Class<?> filterClass)
public java.lang.Class<?> getFilterClass()
public java.lang.String getFilterClassName()
public Filter getFilter()
public void setFilter(Filter filter)
public void setInitParam(java.lang.String param, java.lang.String value)
public void setInitParam(InitParam initParam)
public java.util.Map<java.lang.String,java.lang.String> getInitParamMap()
public java.lang.String getInitParameter(java.lang.String name)
getInitParameter
in interface FilterConfig
getInitParameter
in interface Registration
name
- of the parameterpublic java.util.Enumeration<java.lang.String> getInitParameterNames()
getInitParameterNames
in interface FilterConfig
public void setWebApp(WebApp webApp)
public ServletContext getServletContext()
getServletContext
in interface FilterConfig
public void setServletContext(ServletContext app)
public FilterManager getFilterManager()
public void setFilterManager(FilterManager filterManager)
public void setInit(ContainerProgram init)
public ContainerProgram getInit()
public void setDisplayName(java.lang.String displayName)
public java.lang.String getDisplayName()
public void addMappingForServletNames(java.util.EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, java.lang.String... servletNames)
addMappingForServletNames
in interface FilterRegistration
public java.util.Collection<java.lang.String> getServletNameMappings()
getServletNameMappings
in interface FilterRegistration
public void addMappingForUrlPatterns(java.util.EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, java.lang.String... urlPatterns)
addMappingForUrlPatterns
in interface FilterRegistration
public java.util.Collection<java.lang.String> getUrlPatternMappings()
getUrlPatternMappings
in interface FilterRegistration
public java.lang.String getName()
getName
in interface Registration
public java.lang.String getClassName()
getClassName
in interface Registration
public boolean setInitParameter(java.lang.String name, java.lang.String value)
setInitParameter
in interface Registration
public java.util.Set<java.lang.String> setInitParameters(java.util.Map<java.lang.String,java.lang.String> initParameters)
setInitParameters
in interface Registration
public java.util.Map<java.lang.String,java.lang.String> getInitParameters()
getInitParameters
in interface Registration
public void setAsyncSupported(boolean isAsyncSupported)
setAsyncSupported
in interface Registration.Dynamic
public boolean isAsyncSupported()
public void setDescription(java.lang.String description)
public void setIcon(java.lang.String icon)
public java.lang.String toString()
toString
in class java.lang.Object