WebModule
interface
The WebModule
interface allows modules to dynamically configure Filter
s, Servlet
s and ServletContextListener
s.
The @javax.annotation.Priority
annotation is used to ensure that the request chain is sequenced correctly.
Web module | listener? | servlet? | filter? | @Priority |
Notes |
---|---|---|---|---|---|
|
N |
N |
Y |
FIRST + 100 |
Either this, spring or shiro |
|
Y |
N |
Y |
FIRST + 100 |
Either this, spring or keycloak |
|
Y |
N |
Y |
FIRST + 100 |
Either this, shiro or keycloak |
|
N |
N |
Y |
EARLY - 100 |
Filter is passthru, with no side-effects. |
|
N |
N |
Y |
EARLY |
Mapping depends on which viewers configured. |
|
Y |
Y |
Y (x2) |
MIDPOINT - 80 |
Filters mapped to servlet |
|
N |
Y |
Y |
MIDPOINT - 100 |
|
|
N |
N |
Y |
MIDPOINT - 80 |
|
|
N |
Y |
N |
MIDPOINT |
servlet only, so order doesn’t really matter. |
|
N |
Y |
N |
MIDPOINT |
servlet only, so order doesn’t really matter. |