Hi,
Apart from rendering Sling resource in response to HTTP requests, is there a way to render them programatically:
protected void doPost(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOException { String output = // render "/content/foo/bar/baz.html" response.send(...); }
I am looking for an out-of-the-box solution, otherwise using an HTTP Client library it might be possible to do.
Thanks.
Solved! Go to Solution.
Views
Replies
Total Likes
You can do this using SlingRequestProcessorService. Please search for this in junit cases in sling. You will find a lot of examples.
Views
Replies
Total Likes
You can do this using SlingRequestProcessorService. Please search for this in junit cases in sling. You will find a lot of examples.
Views
Replies
Total Likes