• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doFilter blocking further request

 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How it is possible for doFilter() to block further request processing.

thnx in advance
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By not calling doFilter of the FilterChain, the request will not be further processed. This will then be the responsability of the filter to handle the the response.
 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case there is only one filter in chain and i do not call doFilter, will the web resource still be called, keeping in mind blocking further request processing

thnx in advance
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even with only one filter, if you do not call FilterChain.doFilter,
the next target (for example, a servlet) will not be invoked by the container.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic