Class FilterConfigImpl

java.lang.Object
org.glassfish.grizzly.servlet.FilterConfigImpl
All Implemented Interfaces:
FilterConfig

public class FilterConfigImpl extends Object implements FilterConfig
FilterConfig implementation.
Author:
Jeanfrancois Arcand
  • Constructor Details

    • FilterConfigImpl

      public FilterConfigImpl(WebappContext servletContext)
  • Method Details

    • getInitParameter

      public String getInitParameter(String name)
      Returns a String containing the value of the named initialization parameter, or null if the initialization parameter does not exist.
      Specified by:
      getInitParameter in interface FilterConfig
      Parameters:
      name - a String specifying the name of the initialization parameter
      Returns:
      a String containing the value of the initialization parameter, or null if the initialization parameter does not exist
    • getFilterName

      public String getFilterName()
      Returns the filter-name of this filter as defined in the deployment descriptor.
      Specified by:
      getFilterName in interface FilterConfig
      Returns:
      the filter name of this filter
    • getInitParameterNames

      public Enumeration<String> getInitParameterNames()
      Returns the names of the filter's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the filter has no initialization parameters.
      Specified by:
      getInitParameterNames in interface FilterConfig
      Returns:
      an Enumeration of String objects containing the names of the filter's initialization parameters
    • getServletContext

      public ServletContext getServletContext()
      Returns a reference to the ServletContext in which the caller is executing.
      Specified by:
      getServletContext in interface FilterConfig
      Returns:
      a ServletContext object, used by the caller to interact with its servlet container
      See Also:
    • getFilter

      public 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(Filter filter)
      Set the Filter associated with this object.
      Parameters:
      filter -
    • setFilterName

      protected void setFilterName(String filterName)
      Set the Filter's name associated with this object.
      Parameters:
      filterName - the name of this Filter.
    • setInitParameters

      protected void setInitParameters(Map<String,String> initParameters)
      Set the init parameters associated with this associated Filter.
      Parameters:
      initParameters - the configuration parameters for this Filter