Package org.apache.sling.cms.insights
Interface PageInsightRequest
- All Superinterfaces:
InsightRequest
Represents an insight request
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.sling.cms.insights.InsightRequest
InsightRequest.TYPE -
Method Summary
Modifier and TypeMethodDescriptiongetPage()Gets the page backing this requestorg.jsoup.nodes.ElementGets a JSoup Element of the body of the page, not the full page (e.g.Gets the HTML of the body of the page, not the full page (e.g.org.jsoup.nodes.DocumentGets the page HTML as a JSoup Document.Gets the page HTML.default InsightRequest.TYPEgetType()Get the type of this request.Methods inherited from interface org.apache.sling.cms.insights.InsightRequest
getResource
-
Method Details
-
getPage
Page getPage()Gets the page backing this request- Returns:
- the page
-
getPageBodyElement
Gets a JSoup Element of the body of the page, not the full page (e.g. no header).- Returns:
- the HTML of the body
- Throws:
IOException- an exception occurs retrieving the content
-
getPageBodyHtml
Gets the HTML of the body of the page, not the full page (e.g. no header).- Returns:
- the HTML of the body
- Throws:
IOException- an exception occurs retrieving the content
-
getPageDocument
Gets the page HTML as a JSoup Document.- Returns:
- the page HTML
- Throws:
IOException- an exception occurs retrieving the content
-
getPageHtml
Gets the page HTML. Loads the HTML lazily so the initial request may take a bit but others will be quick.- Returns:
- a string representation of the HTML for a page
- Throws:
IOException- an exception occurs retrieving the content
-
getType
Description copied from interface:InsightRequestGet the type of this request.- Specified by:
getTypein interfaceInsightRequest- Returns:
- the type
-