Package com.day.cq.wcm.core.stats
Class PageViewStatisticsImpl
- java.lang.Object
-
- com.day.cq.wcm.core.stats.PageViewStatisticsImpl
-
- All Implemented Interfaces:
PageViewStatistics
@Service public class PageViewStatisticsImpl extends java.lang.Object implements PageViewStatistics
Little utility for Page-Statistics. Allows to configure theURL
to be called for tracking page-views. Contains convenience for the running of the impression statistics. Is a hook to add possible access to remote reports.- See Also:
PageViewStatistics
-
-
Constructor Summary
Constructors Constructor Description PageViewStatisticsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URI
getTrackingURI()
Get the URI that is supposed to receive tracking data from this instance.java.net.URL
getTrackingURL()
Get the URL that is supposed to receive tracking data from this instancejava.lang.Object[]
report(Page page)
Run a report for the given page
-
-
-
Method Detail
-
getTrackingURL
public java.net.URL getTrackingURL()
Description copied from interface:PageViewStatistics
Get the URL that is supposed to receive tracking data from this instance- Specified by:
getTrackingURL
in interfacePageViewStatistics
- Returns:
- or
null
if none configured - See Also:
PageViewStatistics.getTrackingURL()
-
getTrackingURI
public java.net.URI getTrackingURI()
Description copied from interface:PageViewStatistics
Get the URI that is supposed to receive tracking data from this instance.- Specified by:
getTrackingURI
in interfacePageViewStatistics
- Returns:
- or
null
if none configured - See Also:
PageViewStatistics.getTrackingURL()
-
report
public java.lang.Object[] report(Page page) throws WCMException
Description copied from interface:PageViewStatistics
Run a report for the given page- Specified by:
report
in interfacePageViewStatistics
- Parameters:
page
- to report- Returns:
- report or
null
if none at all - Throws:
WCMException
- in case of error running report- See Also:
PageViewStatistics.report(com.day.cq.wcm.api.Page)
-
-