Class ServletRegistry
- java.lang.Object
-
- org.apache.felix.http.base.internal.registry.ServletRegistry
-
public final class ServletRegistry extends Object
The servlet registry keeps the mappings for all servlets (by using their pattern) for a single servlet context.
-
-
Constructor Summary
Constructors Constructor Description ServletRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddServlet(@NotNull ServletHandler handler)Add a servlet.voidcleanup()voidgetRuntimeInfo(org.osgi.service.http.runtime.dto.ServletContextDTO servletContextDTO, Collection<org.osgi.service.http.runtime.dto.FailedServletDTO> allFailedServletDTOs, Collection<org.osgi.service.http.runtime.dto.FailedResourceDTO> allFailedResourceDTOs)voidremoveServlet(@NotNull ServletInfo info, boolean destroy)Remove a servletPathResolutionresolve(@NotNull String relativeRequestURI)Resolve a request uriServletHandlerresolveByName(@NotNull String name)
-
-
-
Method Detail
-
resolve
public PathResolution resolve(@NotNull @NotNull String relativeRequestURI)
Resolve a request uri- Parameters:
relativeRequestURI- The request uri- Returns:
- A path resolution if a servlet matched,
nullotherwise
-
addServlet
public void addServlet(@NotNull @NotNull ServletHandler handler)Add a servlet.- Parameters:
handler- The servlet handler
-
removeServlet
public void removeServlet(@NotNull @NotNull ServletInfo info, boolean destroy)Remove a servlet- Parameters:
info- The servlet info
-
cleanup
public void cleanup()
-
resolveByName
public ServletHandler resolveByName(@NotNull @NotNull String name)
-
getRuntimeInfo
public void getRuntimeInfo(org.osgi.service.http.runtime.dto.ServletContextDTO servletContextDTO, Collection<org.osgi.service.http.runtime.dto.FailedServletDTO> allFailedServletDTOs, Collection<org.osgi.service.http.runtime.dto.FailedResourceDTO> allFailedResourceDTOs)
-
-