|
Esri Geoportal Server 1.2.9
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.gpt.control.georss.JsonSearchEngine
public abstract class JsonSearchEngine
JSON search engine.
Uses json.engine.className parameter from gpt.xml to create instance. Creates default instance if parameter is empty. Two parameters: json.meta.lucene and json.meta.catalog from gpt.xml configuration file determines whether certain family of output parameters is allowed to be print to the output or not. Default:true
.
ExtJsonFeedWriter
Constructor Summary | |
---|---|
JsonSearchEngine()
|
Method Summary | |
---|---|
static JsonSearchEngine |
createInstance()
Creates instance of the search engine. |
protected IFeedRecords |
doSearch(HttpServletRequest request,
HttpServletResponse response,
RequestContext context,
RestQuery query)
Performs search operation. |
protected static String |
getConfigParam(String paramName)
Gets gpt.xml configuration parameter. |
protected boolean |
isCatalogMetaAllowed()
Checks if catalog data is allowed. |
protected boolean |
isLuceneMetaAllowed()
Checks if Lucene data is allowed. |
protected void |
loadCatalog(RequestContext context,
IFeedRecords records)
Loads catalog meta. |
protected void |
loadStdFieldMeta(List<IFeedRecords.FieldMeta> fields)
Loads standard field meta info. |
abstract IFeedRecords |
search(HttpServletRequest request,
HttpServletResponse response,
RequestContext context,
RestQuery query)
Performs search operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JsonSearchEngine()
Method Detail |
---|
public static JsonSearchEngine createInstance()
JsonSearchEngine
public abstract IFeedRecords search(HttpServletRequest request, HttpServletResponse response, RequestContext context, RestQuery query) throws Exception
request
- HTTP servlet requestresponse
- HTTP servlet responsecontext
- request contextquery
- query
Exception
- if searching failsprotected void loadStdFieldMeta(List<IFeedRecords.FieldMeta> fields)
fields
- list of fieldsprotected IFeedRecords doSearch(HttpServletRequest request, HttpServletResponse response, RequestContext context, RestQuery query) throws Exception
request
- HTTP servlet requestresponse
- HTTP servlet responsecontext
- request contextquery
- query
Exception
- if searching failsprotected void loadCatalog(RequestContext context, IFeedRecords records) throws SQLException
context
- request contextrecords
- records
SQLException
- if accessing catalog database failsprotected static String getConfigParam(String paramName)
paramName
- parameter name
protected boolean isLuceneMetaAllowed()
true
if data is allowedprotected boolean isCatalogMetaAllowed()
true
if data is allowed
|
Esri Geoportal Server 1.2.9
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |