Marcos
Dec 2, 2021

--

Hi,

I gave a basic example in order to show how to intercept the request. Using the method preHandle we have the object HttpServletRequest and we could do a lot of things..

I didn't understand what you want to know, could you please explain?

There is many methods in documentation:

https://docs.oracle.com/cd/E17802_01/products/products/servlet/2.3/javadoc/javax/servlet/http/HttpServletRequest.html

But in a real world scenario you can verify ifa access token is valid, or verify which uri is being accessed..

--

--

Marcos
Marcos

Written by Marcos

I study software development and I love memes.

No responses yet