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 | @Priority |
listener? | filter? | servlet? | Notes |
---|---|---|---|---|---|
|
FIRST + 100 |
Yes |
|
Either this or spring |
|
|
FIRST + 100 |
Yes |
|
Either this or shiro |
|
|
EARLY - 100 |
|
Filter is passthru, with no side-effects. Although priority is relatively early, the filter is registered to be last in pipeline. |
||
|
EARLY |
|
Mapping depends on which viewers configured. |
||
|
MIDPOINT - 100 |
|
|
||
|
MIDPOINT - 80 |
Yes |
|
|
Filters mapped to servlet |
|
MIDPOINT - 80 |
|
|||
|
MIDPOINT |
|
servlet only, so priority doesn’t really matter. |
||
|
MIDPOINT |
|
servlet only, so priority doesn’t really matter. |