com.day.cq.wcm.core.stats
Class PageViewStatisticsImpl

java.lang.Object
  extended by com.day.cq.wcm.core.stats.PageViewStatisticsImpl
All Implemented Interfaces:
PageViewStatistics

public class PageViewStatisticsImpl
extends Object
implements PageViewStatistics

Little utility for Page-Statistics. Allows to configure the URL 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
PageViewStatisticsImpl()
           
 
Method Summary
protected  void activate(org.osgi.service.component.ComponentContext context)
           
 URL getTrackingURL()
          Get the URL that is supposed to receive tracking data from this instance
 Object[] report(Page page)
          Run a report for the given page
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageViewStatisticsImpl

public PageViewStatisticsImpl()
Method Detail

getTrackingURL

public URL getTrackingURL()
Description copied from interface: PageViewStatistics
Get the URL that is supposed to receive tracking data from this instance

Specified by:
getTrackingURL in interface PageViewStatistics
Returns:
or null if none configured
See Also:
PageViewStatistics.getTrackingURL()

report

public Object[] report(Page page)
                throws WCMException
Description copied from interface: PageViewStatistics
Run a report for the given page

Specified by:
report in interface PageViewStatistics
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)

activate

protected void activate(org.osgi.service.component.ComponentContext context)


Copyright © 2009 Day Management AG. All Rights Reserved.