• Post Reply Bookmark Topic Watch Topic
  • New Topic

filters  RSS feed

 
Arun Prasath
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which one is true? and please explain me why it is so?

1.Filters may be used to create request or response wrappers
2.Wrappers may be used to create request or response filters
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are both not false

Request and response wrappers decorate the HttpServletRequest and HttpServletResponse in some way. For example, your response wrapper could decorate the way in which the output stream is written (compressed perhaps).

A filter may make use of a wrapper, but I dont know if the sentence "filters create wrappers" is correct.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!