Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is filters and its use?

Answers were Sorted based on User's Feedback



what is filters and its use?..

Answer / guru

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

what is filters and its use?..

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

Post New Answer

More Core Java Interview Questions

What is strings in java?

0 Answers  


How to pass arraylist to stored procedure in java?

0 Answers  


Why static functions are used?

0 Answers  


Why collection is called framework in java?

0 Answers  


How to find the given number is a prime number or not by getting input from the user

0 Answers  


How do you calculate roots in java?

0 Answers  


What is OOPS Concept?

1 Answers   Cap Gemini,


If there is no implementation of MARKER INTERFACE in java. Then how compiler come to know about specification.

2 Answers  


How TreeMap sorts the objects inside it?? suppose if have include one employee object and one car object. On what basis it will sort?

5 Answers  


Do we need to manually write Copy Constructor?

0 Answers   HCL,


Write a function to find out longest palindrome in a given string?

0 Answers  


how can you catch multiple exceptions in java?

0 Answers   Cyient,


Categories