|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.catalog.search.ASearchEngine com.esri.gpt.catalog.search.SearchEngineRest
public class SearchEngineRest
The class SearchEngineCSW. Accesses a CSW repository to send searTch and parse back results. works closely with the csw client jar.
Field Summary | |
---|---|
static String |
DELIMETER_KV
The Constant DELIMETER_VALUES between key value |
static String |
DELIMETER_KVP
The Constant DELIMETER key value pair |
Constructor Summary | |
---|---|
SearchEngineRest(RequestContext context)
Instantiates a new search engine rest. |
Method Summary | |
---|---|
Map<String,Object> |
createInstances(StringSet rids)
Creates instances of this search engines from the rids |
void |
doSearch()
Do search. |
URI |
getConnectionUri()
Get the connection uri |
String |
getEndPointMetadataUrl()
Gets the end point metadata url. |
String |
getEndPointSearchUrl()
Gets the end point url. |
String |
getKeyAbstract()
Gets the abstract associated with the key |
SearchResultRecord |
getMetadataAsSearchResultRecord(String uuid)
Gets the metadata as object. |
String |
getMetadataAsText(String uuid)
Gets the metadata as text. |
String |
getMetadataUrl(String uuid)
Gets the metadata url for record. |
String |
getProfileId()
Gets the profile id. |
String |
getRecordByIdKvpurl()
Gets the record by id kvpurl. |
String |
getSearchQuery()
Gets the search query. |
SearchGptXslProfiles |
getXslProfiles()
Gets the xsl profiles. |
void |
parseResponse(String xml)
Parses the response. |
Map<String,String> |
readDefaultParamValues()
Gets the default param values as map. |
protected boolean |
readIsExternalSearch()
Read is external search. |
Map<String,String> |
readReplaceParamValues()
Read replace param values as map. |
SearchXslProfile |
readXslProfile()
Read xsl profile. |
void |
setDefaultParamValues(String defaultParamValues)
Sets the default param values. |
void |
setEndPointMetadataUrl(String endPointMetadataUrl)
Sets the end point metadata url. |
void |
setEndPointSearchUrl(String endPointUrl)
Sets the end point url. |
void |
setProfileId(String profileId)
Sets the profile id. |
void |
setRecordByIdKvpurl(String recordByIdKvpurl)
Sets the record by id kvpurl. |
void |
setReplaceUrlValues(String replaceUrlValues)
Sets the replace url values. |
void |
setXslProfiles(SearchGptXslProfiles xslProfiles)
Sets the xsl profiles. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DELIMETER_KVP
public static final String DELIMETER_KV
Constructor Detail |
---|
public SearchEngineRest(RequestContext context)
context
- the contextMethod Detail |
---|
public void setDefaultParamValues(String defaultParamValues)
defaultParamValues
- the new default param valuespublic String getEndPointSearchUrl()
public void setEndPointSearchUrl(String endPointUrl)
endPointUrl
- the new end point urlpublic String getProfileId()
public void setProfileId(String profileId)
profileId
- the new profile idpublic String getRecordByIdKvpurl() throws SearchException
SearchException
public void setRecordByIdKvpurl(String recordByIdKvpurl)
recordByIdKvpurl
- the new record by id kvpurlpublic void setReplaceUrlValues(String replaceUrlValues)
replaceUrlValues
- the new replace url valuespublic SearchGptXslProfiles getXslProfiles() throws SearchException
SearchException
- the search exceptionpublic void setXslProfiles(SearchGptXslProfiles xslProfiles)
xslProfiles
- the new xsl profilespublic String getEndPointMetadataUrl()
public void setEndPointMetadataUrl(String endPointMetadataUrl)
endPointMetadataUrl
- the new end point metadata urlpublic String getMetadataUrl(String uuid) throws SearchException
getMetadataUrl
in class ASearchEngine
uuid
- the uuid
SearchException
- the search exceptionpublic URI getConnectionUri() throws SearchException
getConnectionUri
in class ASearchEngine
SearchException
- if uri from criteria is invalidpublic void doSearch() throws SearchException
ASearchEngine
doSearch
in class ASearchEngine
SearchException
- Exceptions from performing a searchpublic void parseResponse(String xml) throws SearchException
xml
- the xml
SearchException
public SearchResultRecord getMetadataAsSearchResultRecord(String uuid) throws SearchException
getMetadataAsSearchResultRecord
in class ASearchEngine
uuid
- the uuid
SearchException
- the search exceptionASearchEngine.getMetadataAsSearchResultRecord(java.lang.String)
public String getMetadataAsText(String uuid) throws SearchException
getMetadataAsText
in class ASearchEngine
uuid
- the uuid
SearchException
- the search exceptionASearchEngine.getMetadataAsText(java.lang.String)
public Map<String,String> readDefaultParamValues()
public Map<String,String> readReplaceParamValues()
public SearchXslProfile readXslProfile() throws SearchException
SearchException
- the search exceptionpublic String getSearchQuery() throws SearchException
getSearchQuery
in class ASearchEngine
SearchException
- the search exceptionprotected boolean readIsExternalSearch()
readIsExternalSearch
in class ASearchEngine
ASearchEngine.readIsExternalSearch()
public Map<String,Object> createInstances(StringSet rids) throws SearchException
createInstances
in class ASearchEngine
rids
-
SearchException
public String getKeyAbstract() throws SearchException
getKeyAbstract
in class ASearchEngine
SearchException
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |