• Post Reply Bookmark Topic Watch Topic
  • New Topic

Filters

 
amarkirt saroay
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do we say that " Filters may be used to create request /response wrappers?"
 
Ankit Garg
Sheriff
Posts: 9597
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can wrap request and response objects into ServletRequestWrapper and ServletResponseWrapper respectively and then call the doFilter method and pass it these wrapper class objects. The servlet will then receive these wrapped request-response objects. I think this is said in that context...
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!