Class AbstractHandlerContainer

All Implemented Interfaces:
Handler, HandlerContainer, Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle
Direct Known Subclasses:
HandlerCollection, HandlerWrapper, HotSwapHandler

@Deprecated(since="2021-05-27") public abstract class AbstractHandlerContainer extends AbstractHandler implements HandlerContainer
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Abstract Handler Container. This is the base class for handlers that may contain other handlers.
  • Constructor Details

    • AbstractHandlerContainer

      public AbstractHandlerContainer()
      Deprecated.
  • Method Details

    • getChildHandlers

      public Handler[] getChildHandlers()
      Deprecated.
      Specified by:
      getChildHandlers in interface HandlerContainer
      Returns:
      array of all handlers contained by this handler and it's children
    • getChildHandlersByClass

      public Handler[] getChildHandlersByClass(Class<?> byclass)
      Deprecated.
      Specified by:
      getChildHandlersByClass in interface HandlerContainer
      Parameters:
      byclass - the child handler class to get
      Returns:
      array of all handlers contained by this handler and it's children of the passed type.
    • getChildHandlerByClass

      public <T extends Handler> T getChildHandlerByClass(Class<T> byclass)
      Deprecated.
      Specified by:
      getChildHandlerByClass in interface HandlerContainer
      Type Parameters:
      T - the type of handler
      Parameters:
      byclass - the child handler class to get
      Returns:
      first handler of all handlers contained by this handler and it's children of the passed type.
    • findContainerOf

      public static <T extends HandlerContainer> T findContainerOf(HandlerContainer root, Class<T> type, Handler handler)
      Deprecated.
    • setServer

      public void setServer(Server server)
      Deprecated.
      Specified by:
      setServer in interface Handler
      Overrides:
      setServer in class AbstractHandler