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 Summary
Constructors Constructor Description SlingFilterConfig(javax.servlet.ServletContext servletContext, org.osgi.framework.ServiceReference<javax.servlet.Filter> reference, String filterName)
Sets up this base configuration object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFilterName()
String
getInitParameter(String name)
Enumeration<String>
getInitParameterNames()
static String
getName(org.osgi.framework.ServiceReference<javax.servlet.Filter> reference)
Looks for a name value in the service reference properties.javax.servlet.ServletContext
getServletContext()
-
-
-
Constructor Detail
-
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 Detail
-
getInitParameter
public String getInitParameter(String name)
- Specified by:
getInitParameter
in interfacejavax.servlet.FilterConfig
- See Also:
FilterConfig.getInitParameter(java.lang.String)
-
getInitParameterNames
public Enumeration<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
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 interfacejavax.servlet.FilterConfig
- See Also:
FilterConfig.getFilterName()
-
-