What you can do is create a POST.jsp
file in the appropiate resourceType.
If your POST request go to /content/yourapp/something
, which has a resourceType: your/app/example
. Then you can create a file /apps/your/app/example/POST.jsp
with whatever render you wish. You can even include your default rendering script in the POST.jsp
file if you need it to be rendered the same as the GET requests.
The other option is to use a servlet registered for POST requests and internally use the SlingRequestProcessor service. That service allow you to programmatically process a request through Sling. You can use a SlingRequestWrapper to wrap your request and override getMethod() to return "GET". That should process the request as if it was a GET request.