Class WhiteboardContextHandler

java.lang.Object
org.apache.felix.http.base.internal.whiteboard.WhiteboardContextHandler
All Implemented Interfaces:
Comparable<WhiteboardContextHandler>
Direct Known Subclasses:
HttpServiceContextHandler

public class WhiteboardContextHandler extends Object implements Comparable<WhiteboardContextHandler>
The whiteboard context handler provides some information and functionality for handling servlet context (helpers).
  • Constructor Details

    • WhiteboardContextHandler

      public WhiteboardContextHandler(@NotNull ServletContextHelperInfo info, @NotNull jakarta.servlet.ServletContext webContext, @NotNull org.osgi.framework.Bundle httpBundle)
  • Method Details

    • getBundleContext

      @NotNull public org.osgi.framework.BundleContext getBundleContext()
    • getContextInfo

      @NotNull public ServletContextHelperInfo getContextInfo()
    • compareTo

      public int compareTo(@NotNull WhiteboardContextHandler o)
      Specified by:
      compareTo in interface Comparable<WhiteboardContextHandler>
    • activate

      public boolean activate(@NotNull HandlerRegistry registry)
      Activate this context.
      Parameters:
      registry - The handler registry
      Returns:
      true if it succeeded.
    • deactivate

      public void deactivate(@NotNull HandlerRegistry registry)
      Deactivate this context.
    • getSharedContext

      @Nullable public jakarta.servlet.ServletContext getSharedContext()
    • getServletContext

      @Nullable public ExtServletContext getServletContext(@Nullable org.osgi.framework.Bundle bundle)
    • ungetServletContext

      public void ungetServletContext(@NotNull org.osgi.framework.Bundle bundle)
    • getRegistry

      @Nullable public PerContextHandlerRegistry getRegistry()