Package io.undertow.servlet.spec
Class FilterConfigImpl
- java.lang.Object
-
- io.undertow.servlet.spec.FilterConfigImpl
-
- All Implemented Interfaces:
FilterConfig
public class FilterConfigImpl extends Object implements FilterConfig
- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description FilterConfigImpl(FilterInfo filterInfo, ServletContext servletContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFilterName()Returns the filter-name of this filter as defined in the deployment descriptor.StringgetInitParameter(String name)Returns aStringcontaining the value of the named initialization parameter, ornullif the initialization parameter does not exist.Enumeration<String>getInitParameterNames()Returns the names of the filter's initialization parameters as anEnumerationofStringobjects, or an emptyEnumerationif the filter has no initialization parameters.ServletContextgetServletContext()Returns a reference to theServletContextin which the caller is executing.
-
-
-
Constructor Detail
-
FilterConfigImpl
public FilterConfigImpl(FilterInfo filterInfo, ServletContext servletContext)
-
-
Method Detail
-
getFilterName
public String getFilterName()
Description copied from interface:FilterConfigReturns the filter-name of this filter as defined in the deployment descriptor.- Specified by:
getFilterNamein interfaceFilterConfig- Returns:
- the filter name of this filter
-
getServletContext
public ServletContext getServletContext()
Description copied from interface:FilterConfigReturns a reference to theServletContextin which the caller is executing.- Specified by:
getServletContextin interfaceFilterConfig- Returns:
- a
ServletContextobject, used by the caller to interact with its servlet container - See Also:
ServletContext
-
getInitParameter
public String getInitParameter(String name)
Description copied from interface:FilterConfigReturns aStringcontaining the value of the named initialization parameter, ornullif the initialization parameter does not exist.- Specified by:
getInitParameterin interfaceFilterConfig- Parameters:
name- aStringspecifying the name of the initialization parameter- Returns:
- a
Stringcontaining the value of the initialization parameter, ornullif the initialization parameter does not exist
-
getInitParameterNames
public Enumeration<String> getInitParameterNames()
Description copied from interface:FilterConfigReturns the names of the filter's initialization parameters as anEnumerationofStringobjects, or an emptyEnumerationif the filter has no initialization parameters.- Specified by:
getInitParameterNamesin interfaceFilterConfig- Returns:
- an
EnumerationofStringobjects containing the names of the filter's initialization parameters
-
-