Class ConfigurableFilterConfig

  • All Implemented Interfaces:
    javax.servlet.FilterConfig

    public class ConfigurableFilterConfig
    extends Object
    implements javax.servlet.FilterConfig
    • Constructor Detail

      • ConfigurableFilterConfig

        public ConfigurableFilterConfig​(javax.servlet.FilterConfig config)
    • Method Detail

      • getFilterName

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

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

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

        public Enumeration 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 javax.servlet.FilterConfig
        Returns:
        an Enumeration of String objects containing the names of the filter's initialization parameters
      • setParameter

        public void setParameter​(String name,
                                 String value)
        Sets the value of a parameter
        Parameters:
        name - the name of the parameter
        value - the value of the parameter
      • setFilterName

        public void setFilterName​(String name)
        Sets the name of the filter.
        Parameters:
        name -