java.lang.Object
cloud.piranha.nano.NanoFilterConfig
- All Implemented Interfaces:
jakarta.servlet.FilterConfig
The FilterConfig class used by
NanoPiranhaBuilder
so it can initialize a Filter.- Author:
- Manfred Riem (mriem@manorrock.com)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringStores the filter name.Stores the init parameters.private final jakarta.servlet.ServletContextStores the servlet context. -
Constructor Summary
ConstructorsConstructorDescriptionNanoFilterConfig(jakarta.servlet.ServletContext servletContext) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the filter name.getInitParameter(String name) Get the init parameter.Returns the init parameter names.jakarta.servlet.ServletContextReturns the servlet context.voidsetFilterName(String filterName) Set the filter name.voidsetInitParameter(String name, String value) Set the init parameter.
-
Field Details
-
filterName
Stores the filter name. -
initParameters
Stores the init parameters. -
servletContext
private final jakarta.servlet.ServletContext servletContextStores the servlet context.
-
-
Constructor Details
-
NanoFilterConfig
public NanoFilterConfig(jakarta.servlet.ServletContext servletContext) Constructor.- Parameters:
servletContext- the servlet context.
-
-
Method Details
-
getInitParameter
Get the init parameter.- Specified by:
getInitParameterin interfacejakarta.servlet.FilterConfig- Parameters:
name- the name.- Returns:
- the value, or null if not found.
-
getInitParameterNames
Returns the init parameter names.- Specified by:
getInitParameterNamesin interfacejakarta.servlet.FilterConfig- Returns:
- the init parameter names
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()Returns the servlet context.- Specified by:
getServletContextin interfacejakarta.servlet.FilterConfig- Returns:
- the servlet context
-
getFilterName
Returns the filter name.- Specified by:
getFilterNamein interfacejakarta.servlet.FilterConfig- Returns:
- the filter name
-
setFilterName
Set the filter name.- Parameters:
filterName- the filter name.
-
setInitParameter
Set the init parameter.- Parameters:
name- the name.value- the value.
-