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 Summary
Constructors Constructor Description WhiteboardContextHandler(ServletContextHelperInfo info, jakarta.servlet.ServletContext webContext, org.osgi.framework.Bundle httpBundle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
activate(HandlerRegistry registry)
Activate this context.int
compareTo(WhiteboardContextHandler o)
void
deactivate(HandlerRegistry registry)
Deactivate this context.org.osgi.framework.BundleContext
getBundleContext()
ServletContextHelperInfo
getContextInfo()
PerContextHandlerRegistry
getRegistry()
ExtServletContext
getServletContext(org.osgi.framework.Bundle bundle)
jakarta.servlet.ServletContext
getSharedContext()
void
ungetServletContext(org.osgi.framework.Bundle bundle)
-
-
-
Constructor Detail
-
WhiteboardContextHandler
public WhiteboardContextHandler(@NotNull ServletContextHelperInfo info, @NotNull jakarta.servlet.ServletContext webContext, @NotNull org.osgi.framework.Bundle httpBundle)
-
-
Method Detail
-
getBundleContext
@NotNull public org.osgi.framework.BundleContext getBundleContext()
-
getContextInfo
@NotNull public ServletContextHelperInfo getContextInfo()
-
compareTo
public int compareTo(@NotNull WhiteboardContextHandler o)
- Specified by:
compareTo
in interfaceComparable<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()
-
-