Class 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 Detail

      • ServletRegistry

        public ServletRegistry()
    • 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, null otherwise
      • 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()
      • 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)