Class SlingFilterConfig

java.lang.Object
org.apache.sling.engine.impl.helper.SlingFilterConfig
All Implemented Interfaces:
javax.servlet.FilterConfig

public class SlingFilterConfig extends Object implements javax.servlet.FilterConfig
  • Constructor Details

    • SlingFilterConfig

      public SlingFilterConfig(javax.servlet.ServletContext servletContext, org.osgi.framework.ServiceReference<javax.servlet.Filter> reference, String filterName)
      Sets up this base configuration object.
      Parameters:
      servletContext - The ServletContext attached to this configuration.
      reference - The service reference providing the initialization parameter values.
      filterName - The name of this configuration.
  • Method Details

    • getInitParameter

      public String getInitParameter(String name)
      Specified by:
      getInitParameter in interface javax.servlet.FilterConfig
      See Also:
      • FilterConfig.getInitParameter(java.lang.String)
    • getInitParameterNames

      public Enumeration<String> getInitParameterNames()
      Specified by:
      getInitParameterNames in interface javax.servlet.FilterConfig
      See Also:
      • FilterConfig.getInitParameterNames()
    • getServletContext

      public javax.servlet.ServletContext getServletContext()
      Specified by:
      getServletContext in interface javax.servlet.FilterConfig
      See Also:
      • FilterConfig.getServletContext()
    • getName

      public static String getName(org.osgi.framework.ServiceReference<javax.servlet.Filter> reference)
      Looks for a name value in the service reference properties. See the class comment at the top for the list of properties checked by this method. As the service id is part of the checked property list this method always returns a name.
      Parameters:
      reference - the filter service
      Returns:
      the name
    • getFilterName

      public String getFilterName()
      Specified by:
      getFilterName in interface javax.servlet.FilterConfig
      See Also:
      • FilterConfig.getFilterName()