public final class WhiteboardManager extends Object
| Constructor and Description |
|---|
WhiteboardManager(org.osgi.framework.BundleContext bundleContext,
HttpServiceFactory httpServiceFactory,
HandlerRegistry registry)
Create a new whiteboard http manager
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addContextHelper(ServletContextHelperInfo info)
Add a servlet context helper.
|
boolean |
addWhiteboardService(@NotNull WhiteboardServiceInfo<?> info)
Add new whiteboard service to the registry
|
RegistryRuntime |
getRuntimeInfo() |
void |
invokePreprocessors(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
org.osgi.service.http.whiteboard.Preprocessor dispatcher)
Invoke all preprocessors
|
void |
removeContextHelper(ServletContextHelperInfo info)
Remove a servlet context helper
|
void |
removeWhiteboardService(WhiteboardServiceInfo<?> info)
Remove whiteboard service from the registry.
|
void |
sessionDestroyed(@NotNull javax.servlet.http.HttpSession session,
Set<String> contextNames) |
void |
sessionIdChanged(@NotNull javax.servlet.http.HttpSessionEvent event,
String oldSessionId,
Set<String> contextNames)
Handle session id changes
|
void |
start(javax.servlet.ServletContext containerContext,
@NotNull Dictionary<String,Object> httpServiceProps)
Start the whiteboard manager
|
void |
stop()
Stop the instance
|
public WhiteboardManager(org.osgi.framework.BundleContext bundleContext,
HttpServiceFactory httpServiceFactory,
HandlerRegistry registry)
bundleContext - The bundle context of the http bundlehttpServiceFactory - The http service factoryregistry - The handler registrypublic void start(javax.servlet.ServletContext containerContext,
@NotNull
@NotNull Dictionary<String,Object> httpServiceProps)
containerContext - The servlet contextpublic void stop()
public void sessionDestroyed(@NotNull
@NotNull javax.servlet.http.HttpSession session,
Set<String> contextNames)
public void sessionIdChanged(@NotNull
@NotNull javax.servlet.http.HttpSessionEvent event,
String oldSessionId,
Set<String> contextNames)
session - The session where the id changedoldSessionId - The old session idcontextIds - The context ids using that sessionpublic boolean addContextHelper(ServletContextHelperInfo info)
info - The servlet context helper infotrue if the service matches this http whiteboard servicepublic void removeContextHelper(ServletContextHelperInfo info)
The - servlet context helper infopublic boolean addWhiteboardService(@NotNull
@NotNull WhiteboardServiceInfo<?> info)
info - Whiteboard service infotrue if it matches this http service runtimepublic void removeWhiteboardService(WhiteboardServiceInfo<?> info)
info - The service id of the whiteboard servicepublic RegistryRuntime getRuntimeInfo()
public void invokePreprocessors(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
org.osgi.service.http.whiteboard.Preprocessor dispatcher)
throws javax.servlet.ServletException,
IOException
req - The requestres - The responseIOExceptionjavax.servlet.ServletExceptionCopyright © 2006–2020 The Apache Software Foundation. All rights reserved.