public interface BatchVisitor
Single interface that aims to replace all other interfaces with methods like registerServlet,
unregisterServlet, ...
In Pax Web 8, we've tried to decrease duplication of such interfaces (similar methods were available in
interfaces representing HttpService,
ServerController, server abstraction, server state, ... Now, if any class
wants to handle actual (un/re)registrations, it just needs to implement the visitor and correctly
configured Batch can accept such visitor.
| Modifier and Type | Method and Description |
|---|---|
void |
visitClearDynamicRegistrationsChange(ClearDynamicRegistrationsChange change)
Process a change related to reset of dynamic registrations (like
ServletContext.addServlet(java.lang.String, java.lang.String) |
void |
visitContainerInitializerModelChange(ContainerInitializerModelChange change)
Process a change related to
ContainerInitializerModel |
default void |
visitContextMetadataModelChange(ContextMetadataModelChange change)
Process a change related to metadata of the context.
|
default void |
visitContextParamsChange(ContextParamsChange contextParamsChange)
Process a change related to context parameters setup
|
default void |
visitContextStartChange(ContextStartChange contextStartChange)
Process a change related to starting a context - action created on the visitor side to schedule start
of the context in different thread/event tick.
|
default void |
visitContextStopChange(ContextStopChange contextStopChange)
Process a change related to stopping a context
|
void |
visitErrorPageModelChange(ErrorPageModelChange change)
Process a change related to error pages
|
void |
visitErrorPageStateChange(ErrorPageStateChange change)
Process full change of the state of error pages per context
|
void |
visitEventListenerModelChange(EventListenerModelChange change)
Processing a change related to
EventListenerModel |
void |
visitFilterModelChange(FilterModelChange change)
Processing a change related to
FilterModel. |
void |
visitFilterStateChange(FilterStateChange change)
Processing full change of registered filters for all the affected contexts.
|
default void |
visitMimeAndLocaleMappingChange(MimeAndLocaleMappingChange change)
Process a change related to full MIME mapping for the context.
|
void |
visitOsgiContextModelChange(OsgiContextModelChange change)
Processing a change related to
OsgiContextModel - a model
that affects one ServletContextModel thought the relation is
not 1:1, but N:1 - many OsgiContextModels may be associated with single ServletContextModel. |
default void |
visitSecurityConfigChange(SecurityConfigChange securityConfigChange)
Process a changed related to security configuration of web context.
|
void |
visitServletContextModelChange(ServletContextModelChange change)
Processing the most high-level change - related to
ServletContextModel, which creates (or destroys) entire
context (1:1 with "context path"). |
void |
visitServletModelChange(ServletModelChange change)
Processing a change related to
ServletModel. |
default void |
visitTransactionStateChange(TransactionStateChange change)
Process a change related to transactions for a context (path).
|
void |
visitWebSocketModelChange(WebSocketModelChange change)
Process a change related to
WebSocketModel |
void |
visitWelcomeFileModelChange(WelcomeFileModelChange change)
Process a change related to welcome files.
|
void visitServletContextModelChange(ServletContextModelChange change)
ServletContextModel, which creates (or destroys) entire
context (1:1 with "context path").change - void visitOsgiContextModelChange(OsgiContextModelChange change)
OsgiContextModel - a model
that affects one ServletContextModel thought the relation is
not 1:1, but N:1 - many OsgiContextModels may be associated with single ServletContextModel.change - void visitServletModelChange(ServletModelChange change)
ServletModel. Related
to registration or unregistration of servlets.change - void visitFilterModelChange(FilterModelChange change)
FilterModel. Related
to registration or unregistration of filter.change - void visitFilterStateChange(FilterStateChange change)
change - void visitEventListenerModelChange(EventListenerModelChange change)
EventListenerModelchange - void visitWelcomeFileModelChange(WelcomeFileModelChange change)
change - void visitErrorPageModelChange(ErrorPageModelChange change)
change - void visitErrorPageStateChange(ErrorPageStateChange change)
change - void visitContainerInitializerModelChange(ContainerInitializerModelChange change)
ContainerInitializerModelchange - void visitWebSocketModelChange(WebSocketModelChange change)
WebSocketModelchange - default void visitTransactionStateChange(TransactionStateChange change)
BatchVisitor.change - default void visitContextMetadataModelChange(ContextMetadataModelChange change)
change - default void visitMimeAndLocaleMappingChange(MimeAndLocaleMappingChange change)
change - void visitClearDynamicRegistrationsChange(ClearDynamicRegistrationsChange change)
ServletContext.addServlet(java.lang.String, java.lang.String)change - default void visitContextStartChange(ContextStartChange contextStartChange)
contextStartChange - default void visitContextStopChange(ContextStopChange contextStopChange)
contextStopChange - default void visitContextParamsChange(ContextParamsChange contextParamsChange)
contextParamsChange - default void visitSecurityConfigChange(SecurityConfigChange securityConfigChange)
securityConfigChange - Copyright © 2006–2024 OPS4J - Open Participation Software for Java. All rights reserved.