Class SlingServletConfig
java.lang.Object
org.apache.sling.servlets.resolver.internal.resource.SlingServletConfig
- All Implemented Interfaces:
javax.servlet.ServletConfig
-
Constructor Summary
ConstructorDescriptionSlingServletConfig
(javax.servlet.ServletContext servletContext, org.osgi.framework.ServiceReference<javax.servlet.Servlet> reference, String name) Sets up this base configuration object. -
Method Summary
Modifier and TypeMethodDescriptiongetInitParameter
(String name) getServiceProperty
(String key) String[]
javax.servlet.ServletContext
-
Constructor Details
-
SlingServletConfig
public SlingServletConfig(javax.servlet.ServletContext servletContext, org.osgi.framework.ServiceReference<javax.servlet.Servlet> reference, String name) Sets up this base configuration object.- Parameters:
servletContext
- TheServletContext
attached to this configuration.reference
- The service reference providing the initialization parameter values.name
- The name of this configuration.
-
-
Method Details
-
getInitParameter
- Specified by:
getInitParameter
in interfacejavax.servlet.ServletConfig
- See Also:
-
ServletConfig.getInitParameter(java.lang.String)
-
getInitParameterNames
- Specified by:
getInitParameterNames
in interfacejavax.servlet.ServletConfig
- See Also:
-
ServletConfig.getInitParameterNames()
-
getServletContext
public javax.servlet.ServletContext getServletContext()- Specified by:
getServletContext
in interfacejavax.servlet.ServletConfig
- See Also:
-
ServletConfig.getServletContext()
-
getServletName
- Specified by:
getServletName
in interfacejavax.servlet.ServletConfig
- See Also:
-
ServletConfig.getServletName()
-
getServiceProperty
- Returns:
- the value of an OSGi service property of this servlet (which can be an array that getInitParameter* messes up)
-
getServicePropertyKeys
- Returns:
- the OSGi service property keys of this servlet (which can be an array that getInitParameter* messes up)
-