In the below code there is use of RequestResponseFactory to generate the Html output, I would like to refactor the code as its deprecated now.
also HttpServletRequest httpRequest passed to this method its also using requestResponseFacotry in the servlet who call the below method:
HttpServletRequest httpRequest = requestResponseFacotry.createRequest(HttpConstants.METHOD_GET, url);
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
You can try using SlingInternalRequest
https://sling.apache.org/documentation/bundles/servlet-helpers.html#internalrequest-helpers
Views
Replies
Total Likes
Thanks @h_kataria , SlingInternalRequest is an internal API. Using it is not generally recommended for production.
Views
Replies
Total Likes
Did you checked this thread ?
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/do-we-have-any-substitute-...
Views
Replies
Total Likes
Hello @MayurSatav , Yes, but not helpful. As there is no org.apache.sling.api.request.RequestResponseFactory interface exist.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies