Package org.apache.sling.servlets.resolver.internal.resource

# Klasse ServletMounter

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.

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`ServletMounter(org.osgi.framework.BundleContext context, org.apache.sling.api.resource.ResourceResolverFactory resourceResolverFactory, jakarta.servlet.ServletContext servletContext, org.apache.sling.servlets.resolver.internal.ResolverConfig config)`
Activate this component.

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`void`
`bindJakartaServlet(jakarta.servlet.Servlet servlet, org.osgi.framework.ServiceReference<jakarta.servlet.Servlet> reference)`
`protected void`
`bindResolutionCache(ResolutionCache cache)`
`void`
`bindServlet(javax.servlet.Servlet servlet, org.osgi.framework.ServiceReference<javax.servlet.Servlet> reference)`
`protected void`
`deactivate()`
Deactivate this component.
`boolean`
`mountProviders()`
`void`
`unbindJakartaServlet(org.osgi.framework.ServiceReference<jakarta.servlet.Servlet> reference)`
`protected void`
`unbindResolutionCache(ResolutionCache cache)`
`void`
`unbindServlet(org.osgi.framework.ServiceReference<javax.servlet.Servlet> reference)`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Konstruktordetails

### ServletMounter

public ServletMounter(org.osgi.framework.BundleContext context, org.apache.sling.api.resource.ResourceResolverFactory resourceResolverFactory, jakarta.servlet.ServletContext servletContext, org.apache.sling.servlets.resolver.internal.ResolverConfig config)
Activate this component.

## Methodendetails

### 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)

### bindJakartaServlet

public void bindJakartaServlet(jakarta.servlet.Servlet servlet, org.osgi.framework.ServiceReference<jakarta.servlet.Servlet> reference)

### unbindJakartaServlet

public void unbindJakartaServlet(org.osgi.framework.ServiceReference<jakarta.servlet.Servlet> reference)

### mountProviders

public boolean mountProviders()

### bindResolutionCache

protected void bindResolutionCache(ResolutionCache cache)

### unbindResolutionCache

protected void unbindResolutionCache(ResolutionCache cache)