How to write Interceptor for SlingClient

118 Views Asked by At

I need to write interceptor for SlingClient. I have very little idea about interceptors. My problem statement is, that I need to catch all the request which my slingclient is making, and then i need to modify those requests. And i have multiple clients which are extending from SlingClient. So any of the client is making any request alongwith some parameter, then i want to catch that parameter, and change it as per my requirement. Please tell me how can I achieve that.

1

There are 1 best solutions below

4
On

I guess you want to implement a javax.servlet.Filter as seen here Cq5.5 applying a servlet filter to a specific path.