Is this possible to get .model.json from content path in Java class instead of hitting absolute url and get response?
Hi All,
Is there a way to get the /content/my-project/mypage.model.json directly from content path within AEM OSGI service, instead of hitting absolute url http://localhost:4502/content/my-project/mypage.model.json
We do get html of a page with below code snippet
HttpServletRequest httpRequest = requestResponseFactory.createRequest("GET", location);
HttpServletResponse httpResponse = requestResponseFactory.createResponse(out);
requestProcessor.processRequest(httpRequest, httpResponse, resourceResolver);
Is there a way to get the model.json as well similar to above logic?