java.lang.Object
org.apache.sling.servlets.resolver.internal.resource.ServletMounter

public class ServletMounter extends Object
The SlingServletResolver resolves a servlet for a request by implementing the ServletResolver interface. The resolver uses an own session to find the scripts.
  • 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

      protected void bindResolutionCache(ResolutionCache cache)
    • unbindResolutionCache

      protected void unbindResolutionCache(ResolutionCache cache)