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
ConstructorsConstructorDescriptionWhiteboardContextHandler
(ServletContextHelperInfo info, jakarta.servlet.ServletContext webContext, org.osgi.framework.Bundle httpBundle) -
Method Summary
Modifier and TypeMethodDescriptionboolean
activate
(HandlerRegistry registry) Activate this context.int
void
deactivate
(HandlerRegistry registry) Deactivate this context.org.osgi.framework.BundleContext
getServletContext
(org.osgi.framework.Bundle bundle) jakarta.servlet.ServletContext
void
ungetServletContext
(org.osgi.framework.Bundle bundle)
-
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
-
compareTo
- Specified by:
compareTo
in interfaceComparable<WhiteboardContextHandler>
-
activate
Activate this context.- Parameters:
registry
- The handler registry- Returns:
true
if it succeeded.
-
deactivate
Deactivate this context. -
getServletContext
-
ungetServletContext
public void ungetServletContext(@NotNull org.osgi.framework.Bundle bundle) -
getRegistry
-