Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

specs doubt

 
agrah upadhyay
Ranch Hand
Posts: 579
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does following mean ,given in servlet specs .please anybody explain me:
In order to support this style of filter the container must support the following
requirement. When a filter invokes the doFilter method on the container’s filter
chain implementation, the container must ensure that the request and response
object that it passes to the next entity in the filter chain, or to the target web
resource if the filter was the last in the chain, is the same object that was passed
into the doFilter method by the calling filter.



Also tell me whether a filter can implement SingleThreadModel?
[ January 02, 2006: Message edited by: agrah upadhyay ]
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[edited]
So you have a doubt on spec.??
[/edited]

Originally posted by agrah upadhyay:
What does following mean ,given in servlet specs .please anybody explain me:
In order to support this style of filter the container must support the following
requirement. When a filter invokes the doFilter method on the container’s filter
chain implementation, the container must ensure that the request and response
object that it passes to the next entity in the filter chain, or to the target web
resource if the filter was the last in the chain, is the same object that was passed
into the doFilter method by the calling filter.


It means your request and response object, that it passes to the next entity in the filter chain or a other resource incase of last filter in chain, should be the same through out the journey.

Are you getting me?

Actually I cant really make the words more simple. Its very simple and straight already. It would be like improving perfection.


Also tell me whether a filter can implement SingleThreadModel?


Yes. However, SingleThreadModel is deprecated.
[ January 04, 2006: Message edited by: Adeel Ansari ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic