org.cdlib.xtf.crossQuery
Class CrossQueryConfig

Object
  extended by TextConfig
      extended by CrossQueryConfig
Direct Known Subclasses:
RawQuery.RawQueryConfig, SRUConfig

public class CrossQueryConfig
extends TextConfig

Holds global configuration information for the crossQuery servlet.


Field Summary
 String queryParserSheet
          The stylesheet used to parse a query from an HTTP request, into an XML format usable by the text engine (only specified if no query router).
 String queryRouterSheet
          The stylesheet used route an HTTP request to the appropriate query parser stylesheet.
 
Fields inherited from class TextConfig
allowBrowserCaching, attribs, dependencyCheckingEnabled, errorGenSheet, latencyCutoffSize, logLevel, reportLatency, runawayKillTime, runawayNormalTime, servlet, sessionEncodeURLPattern, stylesheetCacheExpire, stylesheetCacheSize, stylesheetProfiling, tokenizerMap, trackSessions
 
Constructor Summary
CrossQueryConfig(CrossQuery servlet)
          Default constructor
CrossQueryConfig(CrossQuery servlet, String path)
          Constructor - Reads and parses the global configuration file (XML) for the crossQuery servlet.
 
Method Summary
 boolean handleProperty(String tagAttr, String strVal)
          Called by when a property is encountered in the configuration file.
 
Methods inherited from class TextConfig
parseBoolean, parseInt, read, requireOrElse
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queryRouterSheet

public String queryRouterSheet
The stylesheet used route an HTTP request to the appropriate query parser stylesheet.


queryParserSheet

public String queryParserSheet
The stylesheet used to parse a query from an HTTP request, into an XML format usable by the text engine (only specified if no query router).

Constructor Detail

CrossQueryConfig

public CrossQueryConfig(CrossQuery servlet)
Default constructor


CrossQueryConfig

public CrossQueryConfig(CrossQuery servlet,
                        String path)
                 throws GeneralException
Constructor - Reads and parses the global configuration file (XML) for the crossQuery servlet.

Parameters:
path - Filesystem path to the config file.
Throws:
GeneralException - If a read or parse error occurs.
Method Detail

handleProperty

public boolean handleProperty(String tagAttr,
                              String strVal)
Called by when a property is encountered in the configuration file. If we recognize the property we process it here; otherwise, we pass it on to the base class for recognition there.

Overrides:
handleProperty in class TextConfig
Parameters:
tagAttr - Combined element/attribute name being considered
strVal - It's string value
Returns:
true if handled, false if unrecognized