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(@NotNull ServletContextHelperInfo info, @NotNull javax.servlet.ServletContext webContext, @NotNull org.osgi.framework.Bundle httpBundle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanactivate(@NotNull HandlerRegistry registry)Activate this context.intcompareTo(@NotNull WhiteboardContextHandler o)voiddeactivate(@NotNull HandlerRegistry registry)Deactivate this context.@NotNull org.osgi.framework.BundleContextgetBundleContext()@NotNull ServletContextHelperInfogetContextInfo()@Nullable PerContextHandlerRegistrygetRegistry()@Nullable ExtServletContextgetServletContext(@Nullable org.osgi.framework.Bundle bundle)@Nullable javax.servlet.ServletContextgetSharedContext()voidungetServletContext(@NotNull org.osgi.framework.Bundle bundle)
-
-
-
Constructor Detail
-
WhiteboardContextHandler
public WhiteboardContextHandler(@NotNull @NotNull ServletContextHelperInfo info, @NotNull @NotNull javax.servlet.ServletContext webContext, @NotNull @NotNull org.osgi.framework.Bundle httpBundle)
-
-
Method Detail
-
getBundleContext
@NotNull public @NotNull org.osgi.framework.BundleContext getBundleContext()
-
getContextInfo
@NotNull public @NotNull ServletContextHelperInfo getContextInfo()
-
compareTo
public int compareTo(@NotNull @NotNull WhiteboardContextHandler o)- Specified by:
compareToin interfaceComparable<WhiteboardContextHandler>
-
activate
public boolean activate(@NotNull @NotNull HandlerRegistry registry)Activate this context.- Returns:
trueif it succeeded.
-
deactivate
public void deactivate(@NotNull @NotNull HandlerRegistry registry)Deactivate this context.
-
getSharedContext
@Nullable public @Nullable javax.servlet.ServletContext getSharedContext()
-
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
@Nullable public @Nullable PerContextHandlerRegistry getRegistry()
-
-