Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

"A filter's doFilter() method must call doFilter() on the input FilterChain object in order...."  RSS feed

 
Himai Minh
Ranch Hand
Posts: 1513
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On p.731 of Head First book,

Which about filters are true?
E. A filter's doFilter() method must call doFilter() on the input FilterChain object in order to ensure that all filters have a chance to execute.
...

The explanation is:

Option E is incorrect because calling doFilter() is not necessary if a filter wishes to block further request processing.


I think statement E and the explanation are both correct.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 2921
205
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with you.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!