scone.accesstracking2
Class LinkEventAdder

java.lang.Object
  extended by HttpEditor
      extended by scone.proxy.HtmlTokenEditor
          extended by scone.accesstracking2.LinkEventAdder

public class LinkEventAdder
extends HtmlTokenEditor

Adds onClick-Events to all A and AREA elements.

These Events set the linkId, which will be sent to the proxy for user action tracking.

The following Code is inserted: onClick="_scone_setlink(linkId);", where linkId is the number of that link. The JavaScript function _scone_setlink() is defined in the ActionTrackingMeg.

Author:
Harald Weinreich, Volkert Buchmann

Field Summary
 
Fields inherited from class scone.proxy.HtmlTokenEditor
COPYRIGHT, e
 
Constructor Summary
LinkEventAdder()
           
 
Method Summary
 void handleRequest(SconePipe pipe)
          accepts all links
 
Methods inherited from class scone.proxy.HtmlTokenEditor
setResponseHeaderField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkEventAdder

public LinkEventAdder()
Method Detail

handleRequest

public void handleRequest(SconePipe pipe)
accepts all links

Overrides:
handleRequest in class HtmlTokenEditor