Class NanoFilterConfig

java.lang.Object
cloud.piranha.nano.NanoFilterConfig
All Implemented Interfaces:
jakarta.servlet.FilterConfig

class NanoFilterConfig extends Object implements jakarta.servlet.FilterConfig
The FilterConfig class used by NanoPiranhaBuilder so it can initialize a Filter.
Author:
Manfred Riem (mriem@manorrock.com)
See Also:
  • Field Details

    • filterName

      private String filterName
      Stores the filter name.
    • initParameters

      private final HashMap<String,String> initParameters
      Stores the init parameters.
    • servletContext

      private final jakarta.servlet.ServletContext servletContext
      Stores the servlet context.
  • Constructor Details

    • NanoFilterConfig

      public NanoFilterConfig(jakarta.servlet.ServletContext servletContext)
      Constructor.
      Parameters:
      servletContext - the servlet context.
  • Method Details

    • getInitParameter

      public String getInitParameter(String name)
      Get the init parameter.
      Specified by:
      getInitParameter in interface jakarta.servlet.FilterConfig
      Parameters:
      name - the name.
      Returns:
      the value, or null if not found.
    • getInitParameterNames

      public Enumeration<String> getInitParameterNames()
      Returns the init parameter names.
      Specified by:
      getInitParameterNames in interface jakarta.servlet.FilterConfig
      Returns:
      the init parameter names
    • getServletContext

      public jakarta.servlet.ServletContext getServletContext()
      Returns the servlet context.
      Specified by:
      getServletContext in interface jakarta.servlet.FilterConfig
      Returns:
      the servlet context
    • getFilterName

      public String getFilterName()
      Returns the filter name.
      Specified by:
      getFilterName in interface jakarta.servlet.FilterConfig
      Returns:
      the filter name
    • setFilterName

      public void setFilterName(String filterName)
      Set the filter name.
      Parameters:
      filterName - the filter name.
    • setInitParameter

      public void setInitParameter(String name, String value)
      Set the init parameter.
      Parameters:
      name - the name.
      value - the value.