Solved
How to access sling request object in OSGI Service
Hello,
Could you please suggest how I can access request object in an OSGI Service ?
I tried @3214626 SlingHttpServletRequest request but it is giving null.
Thanks,
Ravi Joshi
Hello,
Could you please suggest how I can access request object in an OSGI Service ?
I tried @3214626 SlingHttpServletRequest request but it is giving null.
Thanks,
Ravi Joshi
You can try method overloading. Just create a version of the method with an extra parameter to take this field value(which you are injecting in the model). That way it won't affect the existing classes which are using the same method.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.