Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

do filter inline and callback

 
Paul Statham
Ranch Hand
Posts: 60
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So dofilter is apparently both a container callback and an inline method.

Correct me if i'm wrong but does this mean it's called by the container and itself by doing chain.dofilter?
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 2778
174
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,
Correct me if i'm wrong but does this mean it's called by the container and itself by doing chain.dofilter?

Yes, the first filter is called by the container because a filter is configured in the web.xml, all the following filters in the chain are called from your doFilter() method's chain.doFilter().

Regards,
Frits
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!