However, I think that it's always a run-time call irrespective of the contents of the included resource? Pls correct me if i'm wrong.
means after filterChain.doFilter() statement in filter.
After invocation of the next filter in the chain.
The scenario is : (for example) Filter2 after doing some processing with the response object give it to Filter1.
With respect to step 5 ,it means to tell that now filter2 may examine response headers even after giving it to filter1.
Q2. Does the rule of step 5 also apply to request object?(because it is not explicitly mentioned about request object)
(OR) Simply put , Is the below statement valid ?
"After invocation of the next filter in the chain, the filter may examine request headers"