| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.engine.servlets.AbstractServiceReferenceConfig
public abstract class AbstractServiceReferenceConfig
The AbstractServiceReferenceConfig may be used as a base class
 to define ServletConfig and FilterConfig
 instances from OSGi ServiceReference objects. The properties
 of this service reference are used as the initialization parameters of the
 configuration object.
 
 The name of the servlet or filter may be retrieved from the service reference
 by calling the static getName(ServiceReference) method. This method
 looks for the following service reference properties, assuming the first non-null
 value found:
 
| Constructor Summary | |
|---|---|
| AbstractServiceReferenceConfig(javax.servlet.ServletContext servletContext,
                               org.osgi.framework.ServiceReference reference,
                               java.lang.String name)Sets up this base configuration object. | |
| Method Summary | |
|---|---|
|  java.lang.String | getInitParameter(java.lang.String name) | 
|  java.util.Enumeration<?> | getInitParameterNames() | 
| protected  java.lang.String | getName()Returns the name of this configuration object. | 
| static java.lang.String | getName(org.osgi.framework.ServiceReference reference)Looks for a name value in the service reference properties. | 
|  javax.servlet.ServletContext | getServletContext() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AbstractServiceReferenceConfig(javax.servlet.ServletContext servletContext,
                                      org.osgi.framework.ServiceReference reference,
                                      java.lang.String name)
servletContext - The ServletContext attached to this
            configuration.reference - The service reference providing the initialization
            parameter values.name - The name of this configuration.getName()| Method Detail | 
|---|
public java.lang.String getInitParameter(java.lang.String name)
public java.util.Enumeration<?> getInitParameterNames()
public javax.servlet.ServletContext getServletContext()
protected java.lang.String getName()
ServletConfig.getServletName()
 or FilterConfig.getFilterName() methods.
public static java.lang.String getName(org.osgi.framework.ServiceReference reference)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||