pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.statistics
Class PageImpressionRecorder

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.statistics.PageImpressionRecorder

public final class PageImpressionRecorder
extends Controller

takes care of recording a page impression.

Version:
$Revision: 2025 $
Author:
Thomas Weber, Daniel Dietz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
PageImpressionRecorder()
           
 
Method Summary
 void record(ServiceRequest request)
          records the page impressions and returns either JSON (true), if the parameter xhr is present, or a 1x1 pixel transparent 8-bit PNG.
 
Methods inherited from class org.torweg.pulse.bundle.Controller
getAlwaysRun, isAlwaysRun, setAlwaysRun
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageImpressionRecorder

public PageImpressionRecorder()
Method Detail

record

@Action(value="record", generate=true, security=KEEP)
@Permission(value="useStatistics")
public void record(ServiceRequest request)
records the page impressions and returns either JSON (true), if the parameter xhr is present, or a 1x1 pixel transparent 8-bit PNG.

request parameter name description required
serverId numeric server id true
path the path to be recorded (e.g. the bread-crumb) true
ref the referer false
ip the remote ip (only allowed, if the statistics server allows proxies) false
x the screen x-resolution false
y the screen y-resolution false
xhr marks XMLHTTPRequests (will trigger a JSON response of true) false

The response is either JSON (true), if the parameter xhr is present, or a 1x1 pixel transparent 8-bit PNG

Parameters:
request - the current request