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(@NotNull ServletContextHelperInfo info, @NotNull jakarta.servlet.ServletContext webContext, @NotNull org.osgi.framework.Bundle httpBundle) -
Method Summary
Modifier and TypeMethodDescriptionbooleanactivate(@NotNull HandlerRegistry registry) Activate this context.intcompareTo(@NotNull WhiteboardContextHandler o) voiddeactivate(@NotNull HandlerRegistry registry) Deactivate this context.@NotNull org.osgi.framework.BundleContext@NotNull ServletContextHelperInfo@Nullable PerContextHandlerRegistry@Nullable ExtServletContextgetServletContext(@Nullable org.osgi.framework.Bundle bundle) @Nullable jakarta.servlet.ServletContextvoidungetServletContext(@NotNull org.osgi.framework.Bundle bundle)
-
Constructor Details
-
WhiteboardContextHandler
public WhiteboardContextHandler(@NotNull @NotNull ServletContextHelperInfo info, @NotNull @NotNull jakarta.servlet.ServletContext webContext, @NotNull @NotNull org.osgi.framework.Bundle httpBundle)
-
-
Method Details
-
getBundleContext
@NotNull public @NotNull org.osgi.framework.BundleContext getBundleContext() -
getContextInfo
-
compareTo
- Specified by:
compareToin interfaceComparable<WhiteboardContextHandler>
-
activate
Activate this context.- Parameters:
registry- The handler registry- Returns:
trueif it succeeded.
-
deactivate
Deactivate this context.- Parameters:
registry- The handler registry
-
getServletContext
@Nullable public @Nullable ExtServletContext getServletContext(@Nullable @Nullable org.osgi.framework.Bundle bundle) -
ungetServletContext
public void ungetServletContext(@NotNull @NotNull org.osgi.framework.Bundle bundle) -
getRegistry
-