FilterActions.HttpServletResponse.encodeURL(String) and
HttpServletResponse.encodeRedirectURL(String)
(as well as the deprecated methods
HttpServletResponse.encodeUrl(String) and
HttpServletResponse.encodeRedirectUrl(String).Filter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
that uses HttpServletRequest and HttpServletResponse.execute method of the action is called by a filter before or after the
FilterChain is invoked depending on the filter itself.FilterActionSwitch.FilterActions are components of a frequently used type of Filters.FilterAction that executes one of two specified actions based on the outcome of a
Predicate.Filter and a FilterChain into a new FilterChain.Filter
interface that works with HttpServletRequest and
HttpServletResponse instead of ServletRequest and
ServletResponse.Filter interface.NotAnHttpServletRequestException exception is thrown by a method that handles
HttpServletRequest only, but has been called with another type of
ServletException.NotAnHttpServletRequestException with an inappropriate request.NotAnHttpServletResponseException exception is thrown by a method that handles
HttpServletResponse only, but has been called with another type of
ServletResponse.NotAnHttpServletResponseException with an inappropriate response.Predicate or Hamcrest Matcher.FilterActions after invoking the
FilterChain.OptionalFilter.FilterActions before invoking the
FilterChain.Predicate of the FilterActionSwitch.Copyright © 2014–2015. All rights reserved.