what is filters and its use?
Answers were Sorted based on User's Feedback
filters r java classes which is intercept the client request
before it access a resource in server,then it intercept
server response before its reach clint
request filter
for security
response filter
compresed data
init(),do filter(),destroy are methods of filter
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
What is bytecode in java ?
How can an object be unreferenced?
What is jagged array in java?
What is the use of :: in java?
what are three ways in which a thread can enter the waiting state? : Java thread
Can we use both this () and super () in a constructor?
What do you mean by of string::valueof expression in java 8?
What is the difference between overriding and overloading in OOPS.
0 Answers Axtria, ITC Indian Tobacco Company,
Can a class extends itself in java?
Write a program in java to find the maximum and minimum value node from a circular linked list.
What are different types of arrays?
What are the advantages and disadvantages of reference counting in garbage collection?