Class ApplicationFilterConfig

  • All Implemented Interfaces:
    java.io.Serializable, FilterConfig

    public final class ApplicationFilterConfig
    extends java.lang.Object
    implements FilterConfig, java.io.Serializable
    Implementation of a javax.servlet.FilterConfig useful in managing the filter instances instantiated when a web application is first started.
    Author:
    Craig R. McClanahan
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFilterClass()  
      java.util.Map<java.lang.String,​java.lang.String> getFilterInitParameterMap()  
      java.lang.String getFilterName()
      Get the name of the filter.
      java.lang.String getInitParameter​(java.lang.String name)
      Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist.
      java.util.Enumeration<java.lang.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.
      ServletContext getServletContext()
      Returns a reference to the ServletContext in which the caller is executing.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getFilterName

        public java.lang.String getFilterName()
        Description copied from interface: javax.servlet.FilterConfig
        Get the name of the filter.
        Specified by:
        getFilterName in interface FilterConfig
        Returns:
        The filter-name of this filter as defined in the deployment descriptor.
      • getFilterClass

        public java.lang.String getFilterClass()
        Returns:
        The class of the filter we are configuring.
      • getInitParameter

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

        public java.util.Enumeration<java.lang.String> getInitParameterNames()
        Description copied from interface: javax.servlet.FilterConfig
        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:
        Enumeration of String objects containing the names of the filter's initialization parameters
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getFilterInitParameterMap

        public java.util.Map<java.lang.String,​java.lang.String> getFilterInitParameterMap()