Answer Posted / puneet
The ans cudhave been more precise: let me try :)
The filters are basically used when we need to change the
response sent back to the client like implementing
restrictions to few of the resources dependent on the user
who logs in like we dnt need to show few pages to few users
from a website then we need to make that logic in a new
class which implements filter interface and need to write
down the logic in the dofilter method which takes the
response and request objects which can be altered and
changed and the object of this class can be called dependent
on the condition of met on which we want to implement the
restrictions.
We can also use this interface to change the behavior of the
response.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is formatted output in java?
Can a vector contain heterogenous objects?
What is xslt in java?
Is passing by reference faster?
What is difference between variable declaration and definition?
What is the difference between a method and a procedure?
What does system.gc() and runtime.gc() methods do?
What is the advantage of functional interface in java 8?
Is null a string or object in java?
how to create multithreaded program? : Java thread
What are the two types of java?
Why java is not 100% object-oriented?
What is role of void keyword in declaring functions?
What is balanced tree in java?
What does super keyword do?