Package org.glassfish.grizzly.servlet
Class FilterConfigImpl
- java.lang.Object
-
- org.glassfish.grizzly.servlet.FilterConfigImpl
-
- All Implemented Interfaces:
jakarta.servlet.FilterConfig
public class FilterConfigImpl extends Object implements jakarta.servlet.FilterConfig
FilterConfigimplementation.- Author:
- Jeanfrancois Arcand
-
-
Constructor Summary
Constructors Constructor Description FilterConfigImpl(WebappContext servletContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.servlet.FiltergetFilter()Return the application Filter we are configured for.StringgetFilterName()StringgetInitParameter(String name)Enumeration<String>getInitParameterNames()jakarta.servlet.ServletContextgetServletContext()protected voidrecycle()Release the Filter instance associated with this FilterConfig, if there is one.protected voidsetFilter(jakarta.servlet.Filter filter)Set theFilterassociated with this object.protected voidsetFilterName(String filterName)Set theFilter's name associated with this object.protected voidsetInitParameters(Map<String,String> initParameters)Set the init parameters associated with this associatedFilter.
-
-
-
Constructor Detail
-
FilterConfigImpl
public FilterConfigImpl(WebappContext servletContext)
-
-
Method Detail
-
getInitParameter
public String getInitParameter(String name)
- Specified by:
getInitParameterin interfacejakarta.servlet.FilterConfig
-
getFilterName
public String getFilterName()
- Specified by:
getFilterNamein interfacejakarta.servlet.FilterConfig
-
getInitParameterNames
public Enumeration<String> getInitParameterNames()
- Specified by:
getInitParameterNamesin interfacejakarta.servlet.FilterConfig
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()
- Specified by:
getServletContextin interfacejakarta.servlet.FilterConfig
-
getFilter
public jakarta.servlet.Filter getFilter()
Return the application Filter we are configured for.
-
recycle
protected void recycle()
Release the Filter instance associated with this FilterConfig, if there is one.
-
setFilter
protected void setFilter(jakarta.servlet.Filter filter)
Set theFilterassociated with this object.- Parameters:
filter-
-
setFilterName
protected void setFilterName(String filterName)
Set theFilter's name associated with this object.- Parameters:
filterName- the name of thisFilter.
-
-