de.spieleck.app.jacson.eval
Class GoogleEvaluator
java.lang.Object
de.spieleck.app.jacson.PluginBase
de.spieleck.app.jacson.eval.EvaluatorBase
de.spieleck.app.jacson.eval.GoogleEvaluator
- All Implemented Interfaces:
- ConfigVerify.Acceptor, JacsonChunkDrain, JacsonEvaluator, JacsonRegistrable, JacsonReporting, JacsonStately
- public class GoogleEvaluator
- extends EvaluatorBase
- implements ConfigVerify.Acceptor
The GoogleEvaluator searches for the chunks it receives at Google.
- Author:
- Patrick Carl
Field Summary |
static java.lang.String |
GOOGLE_KEY_NODE
|
protected java.lang.StringBuffer |
query
|
protected com.google.soap.search.GoogleSearch |
search
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GOOGLE_KEY_NODE
public static final java.lang.String GOOGLE_KEY_NODE
- See Also:
- Constant Field Values
search
protected com.google.soap.search.GoogleSearch search
query
protected java.lang.StringBuffer query
GoogleEvaluator
public GoogleEvaluator()
init
public void init(ConfigNode config,
JacsonRegistry registry)
throws JacsonConfigException
- Specified by:
init
in interface JacsonRegistrable
- Throws:
JacsonConfigException
accept
public boolean accept(ConfigNode config)
- Specified by:
accept
in interface ConfigVerify.Acceptor
putChunk
public void putChunk(java.lang.String ch)
throws JacsonException
- Description copied from interface:
JacsonChunkDrain
- Feed a single chunk into this filter
- Specified by:
putChunk
in interface JacsonChunkDrain
- Throws:
JacsonException
summary
public void summary()
- Description copied from class:
PluginBase
- Do nothing default implementation
- Specified by:
summary
in interface JacsonReporting
- Overrides:
summary
in class PluginBase
Copyleft 2002 spieleck.de.