public interface WhiteboardWebContainerView
extends org.ops4j.pax.web.service.views.PaxWebContainerView
SPI interface which is used by pax-web-extender-whiteboard to gain lower-level access to
WebContainer managed and lifecycle-scoped to pax-web-runtime bundle.
This is a loose (as loose as possible) coupling between pax-web-runtime (an implementation of HttpService specification) and pax-web-extender-whiteboard (an implementation of Whiteboard Service specification).
The most important difference with direct usage of WebContainer is that
the passed models already have OsgiContextModels associated, while in the WebContainer case
these have to be translated from HttpContext.
| Modifier and Type | Method and Description |
|---|---|
void |
addWhiteboardOsgiContextModel(OsgiContextModel model)
Passes Whiteboard-registered (customized)
OsgiContextModel to be managed in
WebContainer. |
void |
clearFailedDTOInformation(ElementModel<?,?> webElement)
Sned information that given
ElementModel is no longer Whiteboard-tracked, so possible failure DTOs
have to be cleared |
void |
clearFailedDTOInformation(OsgiContextModel webContext)
Sned information that given
OsgiContextModel is no longer Whiteboard-tracked, so possible failure DTOs
have to be cleared |
void |
failedDTOInformation(ElementModel<?,?> webElement)
Send information about failure DTO related to given
ElementModel. |
void |
failedDTOInformation(OsgiContextModel webContext)
Send information about failure DTO related to given
OsgiContextModel. |
List<OsgiContextModel> |
getOsgiContextModels(org.osgi.framework.Bundle bundle)
Returns all the contexts (customized to unified
OsgiContextModel internal representation) managed
at Http Service level. |
void |
registerErrorPages(ErrorPageModel model)
Registers error pages into
associated contexts |
void |
registerFilter(FilterModel model)
One-stop method to register a
Filter described using FilterModel. |
void |
registerJsp(JspModel model)
Registration of JSP model
|
void |
registerListener(EventListenerModel model)
Registers a
EventListenerModel. |
void |
registerResources(ServletModel model)
Registers a
ServletModel as a resource servlet, which means that first proper
resource servlet has to be created. |
void |
registerSecurityConfiguration(SecurityConfigurationModel model)
Registration of
SecurityConfigurationModel |
void |
registerServlet(ServletModel model)
One-stop method to register a
Servlet described using ServletModel. |
void |
registerWabOsgiContextListener(WebContextEventListener whiteboardExtenderContext)
Register a listener/hook, that'll be called when there's
OsgiContextModel created for the WAB. |
void |
registerWebSocket(WebSocketModel model)
Registration of
WebSocketModel |
void |
registerWelcomeFiles(WelcomeFileModel model)
Registers welcome files into
associated contexts |
void |
removeWhiteboardOsgiContextModel(OsgiContextModel model)
Removes Whiteboard-registered (customized)
OsgiContextModel from
WebContainer, which may then switch to using "default"
HttpContext |
void |
unregisterErrorPages(ErrorPageModel model)
Unregisters error pages
|
void |
unregisterFilter(FilterModel model)
Unregistration of
FilterModel using any set criteria. |
void |
unregisterJsp(JspModel model)
Unregistration of JSP model
|
void |
unregisterListener(EventListenerModel model)
Unregisters a
EventListenerModel. |
void |
unregisterResources(ServletModel model)
Unregisters a
ServletModel as a resource servlet. |
void |
unregisterSecurityConfiguration(SecurityConfigurationModel model)
Unregistration of
SecurityConfigurationModel |
void |
unregisterServlet(ServletModel model)
Unregistration of
ServletModel using any set criteria. |
void |
unregisterWebSocket(WebSocketModel model)
Unregistration of
WebSocketModel |
void |
unregisterWelcomeFiles(WelcomeFileModel model)
Unregisters welcome files
|
void registerWabOsgiContextListener(WebContextEventListener whiteboardExtenderContext)
OsgiContextModel created for the WAB.
Such OsgiContextModel should be always used for given context path, hiding all other context models.whiteboardExtenderContext - List<OsgiContextModel> getOsgiContextModels(org.osgi.framework.Bundle bundle)
OsgiContextModel internal representation) managed
at Http Service level. These are either bound to given bundle or "shared"bundle - void registerServlet(ServletModel model)
Servlet described using ServletModel.
ServletModel should always be associated with target (one or many) OsgiContextModel, because
differently than with HttpService scenario, contexts are targeted by logical name
(or LDAP selector) and not as any instance.model - void unregisterServlet(ServletModel model)
ServletModel using any set criteria.model - void registerFilter(FilterModel model)
Filter described using FilterModel.
FilterModel should always be associated with target (one or many) OsgiContextModel.model - void unregisterFilter(FilterModel model)
FilterModel using any set criteria.model - void registerWelcomeFiles(WelcomeFileModel model)
associated contextsmodel - void unregisterWelcomeFiles(WelcomeFileModel model)
model - void registerErrorPages(ErrorPageModel model)
associated contextsmodel - void unregisterErrorPages(ErrorPageModel model)
model - void addWhiteboardOsgiContextModel(OsgiContextModel model)
OsgiContextModel to be managed in
WebContainer. Such OsgiContextModel should have
HttpContext / WebContainerContext configured
directly. That's the requirement, when Whiteboard cedes the management of such context from
pax-web-extender-whiteboard to pax-web-runtime.model - void removeWhiteboardOsgiContextModel(OsgiContextModel model)
OsgiContextModel from
WebContainer, which may then switch to using "default"
HttpContextmodel - void registerResources(ServletModel model)
ServletModel as a resource servlet, which means that first proper
resource servlet has to be created.model - void unregisterResources(ServletModel model)
ServletModel as a resource servlet.model - void registerListener(EventListenerModel model)
EventListenerModel.model - void unregisterListener(EventListenerModel model)
EventListenerModel.model - void registerJsp(JspModel model)
model - void unregisterJsp(JspModel model)
model - void registerWebSocket(WebSocketModel model)
WebSocketModelmodel - void unregisterWebSocket(WebSocketModel model)
WebSocketModelmodel - void registerSecurityConfiguration(SecurityConfigurationModel model)
SecurityConfigurationModelmodel - void unregisterSecurityConfiguration(SecurityConfigurationModel model)
SecurityConfigurationModelmodel - void failedDTOInformation(ElementModel<?,?> webElement)
ElementModel. Successful DTO is sent/calculated
together with the registration - Whiteboard service tracking failures are normally not sent as element
registrations to pax-web-runtime.webElement - void failedDTOInformation(OsgiContextModel webContext)
OsgiContextModel. Successful DTO is sent/calculated
togehter with the registration.webContext - void clearFailedDTOInformation(ElementModel<?,?> webElement)
ElementModel is no longer Whiteboard-tracked, so possible failure DTOs
have to be clearedwebElement - void clearFailedDTOInformation(OsgiContextModel webContext)
OsgiContextModel is no longer Whiteboard-tracked, so possible failure DTOs
have to be clearedwebContext - Copyright © 2006–2024 OPS4J - Open Participation Software for Java. All rights reserved.