org.mmbase.util.transformers
Class GoogleHighlighterFactory
java.lang.Object
org.mmbase.util.transformers.GoogleHighlighterFactory
- All Implemented Interfaces:
- ParameterizedTransformerFactory<CharTransformer>
public class GoogleHighlighterFactory
- extends Object
- implements ParameterizedTransformerFactory<CharTransformer>
An example for parameterized transformers. The Google highlighter transformers have a REQUEST
parameter, which are used to explore the 'Referer' HTTP header and highlight the google search
words.
This can be used in taglib e.g. by <mm:content postprocessor="google" expires="0" />
Because you need expires=0, you need be reluctant to use this, because this means that your page
cannot be cached in front-proxies. Perhaps it is better to find some client-side solution.
It produces instances of extensions of RegexpReplacer
- Since:
- MMBase-1.8
- Author:
- Michiel Meeuwissen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GoogleHighlighterFactory
public GoogleHighlighterFactory()
createTransformer
public CharTransformer createTransformer(Parameters parameters)
- Description copied from interface:
ParameterizedTransformerFactory
- Creates a parameterized transformer.
- Specified by:
createTransformer in interface ParameterizedTransformerFactory<CharTransformer>
createParameters
public Parameters createParameters()
- Description copied from interface:
ParameterizedTransformerFactory
- Create empty
Parameters object for use with ParameterizedTransformerFactory.createTransformer(Parameters).
- Specified by:
createParameters in interface ParameterizedTransformerFactory<CharTransformer>
MMBase 2.0-SNAPSHOT - null