How to get current page or current page sub page or all pages contents byte for post to remote server for translate
Now there is a need to get current page or current page sub page or all pages in CQ5, also need 1)to post the page content to remote server for translate; 2) and if necessary to post the page's properties like title and description to remote server for tranlate. As a result, these page file translated will be pulled back to CQ5
And now i found in this forum someone mentioned as below could get:
currentPage - request.getResource().adaptTo(Page.class)
currentNode - request.getResource().adaptTo(Node.class)
My question is: if developer could get the whole page file (XX.html) to post remote server for translate and how to get? If false, how to deal with that case: get page content that need to translate, then post it to remote server for translate?
So anyone could help provide suggestion? Thanks in advance.