• 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: 9577
33
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic