Jacson

de.spieleck.app.jacson.eval
Class GoogleEvaluator

java.lang.Object
  extended byde.spieleck.app.jacson.PluginBase
      extended byde.spieleck.app.jacson.eval.EvaluatorBase
          extended byde.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
           
 
Constructor Summary
GoogleEvaluator()
           
 
Method Summary
 boolean accept(ConfigNode config)
           
 void init(ConfigNode config, JacsonRegistry registry)
           
 void putChunk(java.lang.String ch)
          Feed a single chunk into this filter
 void summary()
          Do nothing default implementation
 
Methods inherited from class de.spieleck.app.jacson.PluginBase
getRegReport, getRegState, registerReport, registerState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.spieleck.app.jacson.JacsonStately
registerState
 
Methods inherited from interface de.spieleck.app.jacson.JacsonReporting
registerReport
 

Field Detail

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
Constructor Detail

GoogleEvaluator

public GoogleEvaluator()
Method Detail

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

Spieleck

Copyleft 2002 spieleck.de.