Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doFilter() method clarrification please

 
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