Class ServletResourceProviderFactory
java.lang.Object
org.apache.sling.servlets.resolver.internal.resource.ServletResourceProviderFactory
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The extension appended to servlets to register into the resource tree to simplify handling in the resolution process (value is ".servlet"). -
Constructor Summary
ConstructorDescriptionServletResourceProviderFactory
(String servletRoot, List<String> searchPath) Constructor -
Method Summary
Modifier and TypeMethodDescriptioncreate
(org.osgi.framework.ServiceReference<javax.servlet.Servlet> ref, javax.servlet.Servlet servlet) Create a servlet resource provider for the servletstatic String
getServiceReferenceInfo
(org.osgi.framework.ServiceReference<javax.servlet.Servlet> reference)
-
Field Details
-
SERVLET_PATH_EXTENSION
The extension appended to servlets to register into the resource tree to simplify handling in the resolution process (value is ".servlet").- See Also:
-
-
Constructor Details
-
ServletResourceProviderFactory
Constructor- Parameters:
servletRoot
- The default value for the servlet root
-
-
Method Details
-
create
public ServletResourceProvider create(org.osgi.framework.ServiceReference<javax.servlet.Servlet> ref, javax.servlet.Servlet servlet) Create a servlet resource provider for the servlet- Parameters:
ref
- The service reference for the servletservlet
- The servlet object itself- Returns:
- A servlet resource provider
-
getServiceReferenceInfo
public static String getServiceReferenceInfo(org.osgi.framework.ServiceReference<javax.servlet.Servlet> reference)
-