Class HandlerRegistry


  • public final class HandlerRegistry
    extends Object
    Registry for all services. The registry is organized per servlet context and is dispatching to one of the PerContextHandlerRegistry registries.
    • Constructor Detail

      • HandlerRegistry

        public HandlerRegistry​(org.apache.felix.http.base.internal.HttpConfig config)
    • Method Detail

      • getConfig

        public org.apache.felix.http.base.internal.HttpConfig getConfig()
      • init

        public void init()
        Register default context registry for Http Service
      • reset

        public void reset()
        Reset to initial state
      • shutdown

        public void shutdown()
        Shutdown
      • remove

        public void remove​(@NotNull
                           ServletContextHelperInfo info)
        Remove a context registration.
        Parameters:
        info - The servlet context helper info
      • resolveServletByName

        public ServletResolution resolveServletByName​(long contextId,
                                                      @NotNull
                                                      String name)
        Get the servlet handler for a servlet by name
        Parameters:
        contextId - The context id
        name - The servlet name
        Returns:
        The servlet handler or null
      • getRuntimeInfo

        public boolean getRuntimeInfo​(@NotNull
                                      org.osgi.service.servlet.runtime.dto.ServletContextDTO dto,
                                      @NotNull
                                      FailedDTOHolder failedDTOHolder)