Hello people , Have a couple of cob webs in my mind (lots of space occupied by spiders)hope you could brush them for me : 1.What is meant by container callback methods,how is doFilter and destroy methods in Filter interface callback methods.Similarly ,please define inlin methods. 2.What is the intercepting filter pattern and are all Filters an example of the same. 3.Are Session attributes thread safe .Can two different clients be part of a session if yes then how will the container achieve it.
Thanks people for caring to take a look ,cheers
posted 8 years ago
1. A container callback method is AFAIK a method that the container calls in response to another event. Conventionally you'd call a method to trigger a response from the container. In a call back method the CONTAINER calls the method based on something that's happened within the container i.e. a session being destroyed, or a Filter having control returned to it via the response.
2. An explantion of the intercepting filter pattern:
for the purposes of SCWCD all filters would be examples of such, but not exclusively so (i.e. you could write a filter pattern that didn't use Filter).
3. Session variables are NOT thread safe. For example you could open a second browser window that has the same session url / cookie. Any updates to session variables caused by one browser window could get overwritten by the second browser window.
HTH - Rufus.
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