Class SlingFilterConfig
java.lang.Object
org.apache.sling.engine.impl.helper.SlingFilterConfig
- All Implemented Interfaces:
javax.servlet.FilterConfig
-
Constructor Summary
ConstructorsConstructorDescriptionSlingFilterConfig
(javax.servlet.ServletContext servletContext, org.osgi.framework.ServiceReference<javax.servlet.Filter> reference, String filterName) Sets up this base configuration object. -
Method Summary
Modifier and TypeMethodDescriptiongetInitParameter
(String name) static String
getName
(org.osgi.framework.ServiceReference<javax.servlet.Filter> reference) Looks for a name value in the service reference properties.javax.servlet.ServletContext
-
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
- TheServletContext
attached to this configuration.reference
- The service reference providing the initialization parameter values.filterName
- The name of this configuration.
-
-
Method Details
-
getInitParameter
- Specified by:
getInitParameter
in interfacejavax.servlet.FilterConfig
- See Also:
-
FilterConfig.getInitParameter(java.lang.String)
-
getInitParameterNames
- Specified by:
getInitParameterNames
in interfacejavax.servlet.FilterConfig
- See Also:
-
FilterConfig.getInitParameterNames()
-
getServletContext
public javax.servlet.ServletContext getServletContext()- Specified by:
getServletContext
in interfacejavax.servlet.FilterConfig
- See Also:
-
FilterConfig.getServletContext()
-
getName
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
- Specified by:
getFilterName
in interfacejavax.servlet.FilterConfig
- See Also:
-
FilterConfig.getFilterName()
-