This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

doFilter() method clarrification please  RSS feed

 
Garlapati Ravi
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I found a statement in Head First
A filter's doFilter() may block further request processing

what does it mean ? how doFilter() can block further request, it has to keep on moving right ?
 
Bk Jacky
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It can bkz this method can throw any exception and stop further processing.
 
Abi Ted
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anytime while processing the request, if the filter grades that the request should be dropped, the filter will not call chain.doFilter(request,response).

Thus the request is said to be dropped. The doFilter method of Filter interface returns normally as if nothing happened.
 
Garlapati Ravi
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
got the point, thanks for your comments.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!