Class ServletMounter
java.lang.Object
org.apache.sling.servlets.resolver.internal.resource.ServletMounter
The
SlingServletResolver
resolves a
servlet for a request by implementing the ServletResolver
interface.
The resolver uses an own session to find the scripts.-
Constructor Summary
ConstructorDescriptionServletMounter
(org.osgi.framework.BundleContext context, ResourceResolverFactory resourceResolverFactory, javax.servlet.ServletContext servletContext, org.apache.sling.servlets.resolver.internal.ResolverConfig config) Activate this component. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
bindServlet
(javax.servlet.Servlet servlet, org.osgi.framework.ServiceReference<javax.servlet.Servlet> reference) protected void
Deactivate this component.boolean
protected void
void
unbindServlet
(org.osgi.framework.ServiceReference<javax.servlet.Servlet> reference)
-
Constructor Details
-
ServletMounter
public ServletMounter(org.osgi.framework.BundleContext context, ResourceResolverFactory resourceResolverFactory, javax.servlet.ServletContext servletContext, org.apache.sling.servlets.resolver.internal.ResolverConfig config) Activate this component.
-
-
Method Details
-
deactivate
protected void deactivate()Deactivate this component. -
bindServlet
public void bindServlet(javax.servlet.Servlet servlet, org.osgi.framework.ServiceReference<javax.servlet.Servlet> reference) -
unbindServlet
public void unbindServlet(org.osgi.framework.ServiceReference<javax.servlet.Servlet> reference) -
mountProviders
public boolean mountProviders() -
bindResolutionCache
-
unbindResolutionCache
-