title: How filter chain invocation works?
body: <p>I am trying to understand filter chaining.As defined in <a href="https://stackoverflow.com/questions/2057607/what-is-dofilter-doing-in-dofilter-method-in-filters-of-java">this question</a></p>
  
  <blockquote>
    <p>All filters are chained (in the order of their definition in web.xml).
    The chain.doFilter() is proceeding to the next element in the chain.
    The last element of the chain is the target resource/servlet.</p>
  </blockquote>
  
  <p>I am interested to know behind the scene in container that how container handles filter chaining.Can someone explain that how Filter chaining is handled inside container?</p>