public final class ServletRegistry extends Object
| Constructor and Description |
|---|
ServletRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addServlet(@NotNull ServletHandler handler)
Add a servlet.
|
void |
cleanup() |
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) |
void |
removeServlet(@NotNull ServletInfo info,
boolean destroy)
Remove a servlet
|
PathResolution |
resolve(@NotNull String relativeRequestURI)
Resolve a request uri
|
ServletHandler |
resolveByName(@NotNull String name) |
public PathResolution resolve(@NotNull @NotNull String relativeRequestURI)
relativeRequestURI - The request urinull otherwisepublic void addServlet(@NotNull
@NotNull ServletHandler handler)
handler - The servlet handlerpublic void removeServlet(@NotNull
@NotNull ServletInfo info,
boolean destroy)
info - The servlet infopublic void cleanup()
public ServletHandler resolveByName(@NotNull @NotNull String name)
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)
Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.