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?

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


Please Help Members By Posting Answers For Below Questions

What is the default size of arraylist in java?

1198


Are arrays dynamic in java?

1086


What is the static import?

1153


What do you mean by stack?

1203


how can you take care of mutual exclusion using java threads? : Java thread

1099


Explain the difference between runnable and callable interface in java?

1098


What is the implementation of destroy method in java. Is it native or java code?

1023


Compare Mutex and Semaphore in java.

1054


What are the advantages of java?

1036


What is the significance of java packages?

1142


Which is easier .net or java?

1132


How can we pass argument to a function by reference instead of pass by value?

1160


what methods would you overwrite in java.lang.object class?

1064


What is the difference between the direct buffer and non-direct buffer in java?

1081


Is it possible for yielded thread to get chance for its execution again ?

1083