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 booleanactivate(HandlerRegistry registry)Activate this context.intcompareTo(WhiteboardContextHandler o)voiddeactivate(HandlerRegistry registry)Deactivate this context.org.osgi.framework.BundleContextgetBundleContext()ServletContextHelperInfogetContextInfo()PerContextHandlerRegistrygetRegistry()ExtServletContextgetServletContext(org.osgi.framework.Bundle bundle)jakarta.servlet.ServletContextgetSharedContext()voidungetServletContext(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:
compareToin interfaceComparable<WhiteboardContextHandler>
-
activate
public boolean activate(@NotNull HandlerRegistry registry)Activate this context.- Parameters:
registry- The handler registry- Returns:
trueif 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()
-
-