This article is about my research related to the question which I posted on Stackoverflow - https://stackoverflow.com/questions/44004602/return-client-specific-response-from-the-same-rest-endpoint-in-spring-4 I wanted a way to customize my response from a Spring Rest Controller based on the client which made the request. Client identification can be done via a lot of things, but I had to do it via the scopes. Now, the way I will have to eventually proceed is by creating separate end-points for the clients for unmentionable reasons whatsoever, but I couldn't help myself writing down here so that somebody might just find useful and a better use-case for it. So, here is what I wanted things to work. Let me draw a picture. That would really help to make you understand. Here are the three challenges for me to achieve this: How to get the scope in my code somewhere so that I can do something about it? I needed a way to to intercept/filter the JSON response that was sen...
When you have A burning secret, Don't you have an urge To leak it? Yes, why share is A mystery. But let me tell you My history. I never liked Having to hide. But knew I needed To stay inside. Because, if ever, I dared come out, The risk was too high Of things I could spout. If I weren't always Out of sight, Then I'd spill secrets Left and right. So, being isolated By my choice Seemed much safer Than using my voice. Because, like me, Others were weak. All their secrets, They needed to speak. So it came out, Out to me. I'm the keeper, Don't you see? I hold secrets Large and small. What I know Could make men fall. From petty theft To cheating flings, There's quite a variety Of things. Of course, these secrets I'd never say. I try to keep them Locked away. Let's hope I'm not Trying in vain, Because I can inflict Enormous pain. The information I keep concealed Could all too easily Become revealed. I can cause Loads of trouble: Strong foundations Smashed ...
It was raining heavily outside. Dark clouds gathered in the sky and nature was in its ominous best. I took a break from my work and went to the pantry to grab a cup of coffee. I had a sip and went near the window to see the rain pouring down heavily outside the glass structure. I was inside our huge office building, unruffled by even the fierceness of the nature. Through the heavy transparent glass, I could see a small girl trying to hold on to her umbrella which the wind was snatching away from her. I felt sorry for the girl, and was happy that I was not in a similar pathetic situation. Yes. I take pride for the fact that I am a software engineer.I have everything which a common man would envy; money, status, respect, you name it I have it. I always wanted to be software professional and here I am, working for one of the best firms in the world. But then, am I really happy? Now, I could see an imprint of my palm on the other glass window, through which I reminisced my past, basked in ...
Comments
Post a Comment