Liferay 6.2-ce-ga5

com.liferay.portlet.journal.util
Class ViewCounterTransformerListener

java.lang.Object
  extended by com.liferay.portal.kernel.templateparser.BaseTransformerListener
      extended by com.liferay.portlet.journal.util.ViewCounterTransformerListener
All Implemented Interfaces:
TransformerListener

public class ViewCounterTransformerListener
extends BaseTransformerListener


Constructor Summary
ViewCounterTransformerListener()
           
 
Method Summary
 String onOutput(String output, String languageId, Map<String,String> tokens)
           
protected  String replace(String s, Map<String,String> tokens)
          Replace the counter token with the increment call.
 
Methods inherited from class com.liferay.portal.kernel.templateparser.BaseTransformerListener
onScript, onXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewCounterTransformerListener

public ViewCounterTransformerListener()
Method Detail

onOutput

public String onOutput(String output,
                       String languageId,
                       Map<String,String> tokens)
Specified by:
onOutput in interface TransformerListener
Overrides:
onOutput in class BaseTransformerListener

replace

protected String replace(String s,
                         Map<String,String> tokens)
Replace the counter token with the increment call.

Returns:
the processed string

Liferay 6.2-ce-ga5