Understanding Java Servlet Filter

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

servlet filter in simple terms:
1:06 using servlet filter, we can *stop the request and modify it before accessing the backend resources*
1:18 using servlet filter, we can *manipulate the response from the server before it goes to the client*
1:29 a new feature in Servlet 2.3 spec, a part of J2EE 2.3


2:12 what is servlet filter
2:30 manipulate a servlet request or a servlet response
2:34 filter follows the *decorator* pattern
3:13 example


4:56 why use servlet filter
5:16 applied by configuration (rather than tight-coupling in Java code)
5:44 *can be chained* together
5:56 have access to *ServletRequest*
5:59 can manipulate the *headers*
6:01 can add object to the *request attributes*
6:04 can add object to the *session*
6:08 have access to the *ServletContext*


use of servlet filters
6:27
6:37 convertions
6:38 data compressions
6:40 encryption and decyption
6:42 input validations
6:44 authentication and authorization

ruixue
Автор

Thank you Sir for explaining this in a very good way.

nagmasaiyad
Автор

Explain is vers clear and good thanks sir

Mohamed-ufjh
Автор

I'm in love with animation logo intro :)

thejoywithin
Автор

without realtime coding explanation how we can understand? finally you said usage correct: that usage you should be proof through coding point of view. That is very good explanation. But many people are doing same methdology you are following. No use this video. For example : how to apply Filter techniques at Input Validation, DataCompression, How to apply Filter techniques in Record all the Incoming Requests. In which scenario its required and what kind of application is required. That is the way people expectations.

gpalanikumar