Skip to main content
Version: 7.2402.x.x RR

ModifierFlags

ModifierFlags support conditions and do not accept Pragma continue.

The ModifierFlags are checked at the end of the doFilter method. They describe what the filter may have changed. In this case, any subsequent filter/servlet will know if it has to add one or more wrappers again to fulfill the given RequestFlags.

Syntax:

[ALL] [NONE] [+/-RESET_BUFFERED_BODY] [+/-RESET_COOKIES] [+/-RESET_PARAMS]
  • 'ALL': is the same as + with all other flags
  • 'NONE': is the same as - with all other flags
  • '+': signals what the filter may have changed and needs to be reset. The subsequent filter/servlet will know that it has to be added again.
  • '-': signals what has not changed, and therefore does not need to be reset. The subsequent filter/servlet won't know that it has to be added again.
  • RESET_BUFFERED_BODY: the request body may have changed. The subsequent filter/servlet with the RequestFlag 'NEEDS_BUFFERED_BODY' will read the needed wrappers again.
  • RESET_COOKIES: the cookie header may have changed. The subsequent filter/servlet with the RequestFlag 'NEEDS_COOKIES' will read the needed wrappers again.
  • RESET_PARAMS: the query or the body (for forms) may have changed. The next subsequent filter/servlet with the RequestFlag 'NEEDS_PARAMS' or 'NEEDS_JSON_PARSING' will read the needed wrappers again.