Esri Geoportal Server
1.0

com.esri.gpt.catalog.lucene
Class StandardNetworkParserAdaptor

java.lang.Object
  extended by com.esri.gpt.catalog.lucene.StandardNetworkParserAdaptor
All Implemented Interfaces:
IParserProxy, Serializable

public class StandardNetworkParserAdaptor
extends Object
implements IParserProxy

Standard network parser adaptor.

Provides mechanizm to delegate query parsing to the servlet on the network.

See Also:
Serialized Form

Constructor Summary
StandardNetworkParserAdaptor()
           
 
Method Summary
 String getBaseUrl()
          Gets base URL.
 void init(Properties properties)
          Initializes adaptor.
 String parse(String queryText)
          Delegates query parsing to some external mechanizm.
 void setBaseUrl(String baseUrl)
          Sets base URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardNetworkParserAdaptor

public StandardNetworkParserAdaptor()
Method Detail

getBaseUrl

public String getBaseUrl()
Gets base URL.

Returns:
base URL

setBaseUrl

public void setBaseUrl(String baseUrl)
Sets base URL.

Parameters:
baseUrl - base URL

init

public void init(Properties properties)
Initializes adaptor.

Reads baseUrl property from the properties.

Parameters:
properties - properties

parse

public String parse(String queryText)
             throws ParseException
Description copied from interface: IParserProxy
Delegates query parsing to some external mechanizm.

Specified by:
parse in interface IParserProxy
Parameters:
queryText - query text to parse
Returns:
response received from the other mechanizm conforming Lucene query syntax.
Throws:
ParseException - if unable to parse term

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.