|
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.framework.search.SearchXslProfile<C,RD,RS,QR>
C
- criteria typeRD
- record typeRS
- collection of records typeQR
- query result typepublic abstract class SearchXslProfile<C extends Criteria,RD extends Record,RS extends Records<RD>,QR extends QueryResult<RS>>
Search profile.
Nested Class Summary | |
---|---|
static class |
SearchXslProfile.FORMAT_SEARCH_TO_XSL
|
Constructor Summary | |
---|---|
SearchXslProfile()
Instantiates a new csw profile. |
|
SearchXslProfile(String sid,
String sname,
String sdescription)
The Constructor. |
|
SearchXslProfile(String id,
String name,
String description,
String kvp,
String requestxslt,
String responsexslt,
String metadataxslt,
boolean livedatamap,
boolean extentsearch)
The Constructor. |
Method Summary | |
---|---|
String |
generateGetRecordsRequest(SearchCriteria criteria,
Map<String,String> xslParams,
boolean hitsOnly)
Generate get records request. |
String |
getDescription()
|
TransformerFactory |
getFactory()
Gets the transformer factory. |
SearchXslProfile.FORMAT_SEARCH_TO_XSL |
getFormatRequestToXsl()
Gets the format request to xsl. |
String |
getId()
Gets the id. |
String |
getKvp()
Gets the kvp. |
String |
getMetadataxslt()
Gets the metadataxslt. |
XsltTemplate |
getMetadataxsltobj()
Gets the metadataxsltobj. |
XsltTemplate |
getMetadataXsltObj()
Gets the response XSLT object. |
String |
getName()
Gets the name. |
SearchXslRecord |
getRecordById(String responseStr,
String uuid,
String requestUrl)
Gets the record by id. |
String |
getRequestxslt()
Gets the requestxslt. |
XsltTemplate |
getRequestxsltobj()
Gets the requestxsltobj. |
String |
getResponsexslt()
Gets the responsexslt. |
XsltTemplate |
getResponsexsltobj()
Gets the response XSLT object. |
boolean |
isFilter_extentsearch()
Checks if is filter_extentsearch. |
boolean |
isFilter_livedatamap()
Checks if is filter_livedatamap. |
boolean |
isHarvestable()
Checks if is harvestable. |
boolean |
isSupportsContentTypeQuery()
Checks if is supports content type query. |
boolean |
isSupportsFullMetadataAtSearch()
Checks if is supports full metadata at search. |
boolean |
isSupportsSpatialBoundary()
Checks if is supports spatial boundary. |
boolean |
isSupportsSpatialQuery()
Checks if is supports spatial query. |
abstract void |
readGetMetadataByIDResponse(String response,
RD record)
Read get metadata by id response. |
void |
readGetRecordsResponse(String responseString,
QueryResult<RS> searchResult)
Read get records response. |
protected void |
readIntermidiateGetRecordById(String response,
SearchXslRecord record)
Read intermidiate get record by id. |
void |
setDescription(String description)
Sets the description. |
void |
setFilter_extentsearch(boolean filter_extentsearch)
Sets the filter_extentsearch. |
void |
setFilter_livedatamap(boolean filter_livedatamap)
Sets the filter_livedatamap. |
void |
setFormatRequestToXsl(SearchXslProfile.FORMAT_SEARCH_TO_XSL formatRequestToXsl)
Sets the format request to xsl. |
void |
setHarvestable(boolean harvestable)
Sets the harvestable. |
void |
setId(String id)
Sets the id. |
void |
setKvp(String kvp)
Sets the kvp. |
void |
setMetadataxslt(String metadataxslt)
Sets the metadataxslt. |
void |
setMetadataxsltobj(XsltTemplate metadataxsltobj)
Sets the metadataxsltobj. |
void |
setName(String name)
Sets the name. |
void |
setRequestxslt(String requestxslt)
Sets the requestxslt. |
void |
setRequestxsltobj(XsltTemplate requestxsltobj)
Sets the requestxsltobj. |
void |
setResponsexslt(String responsexslt)
Sets the response XSLT. |
void |
setResponsexsltobj(XsltTemplate responsexsltobj)
Sets the response XSLT Object. |
void |
setSupportsContentTypeQuery(boolean supportsContentTypeQuery)
Sets the supports content type query. |
void |
setSupportsFullMetadataAtSearch(boolean supportsFullMetadataAtSearch)
Sets the supports full metadata at search. |
void |
setSupportsSpatialBoundary(boolean supportsSpatialBoundary)
Sets the supports spatial boundary. |
void |
setSupportsSpatialQuery(boolean supportsSpatialQuery)
Sets the supports spatial query. |
boolean |
SupportContentTypeQuery()
Support content type query. |
boolean |
SupportSpatialBoundary()
|
boolean |
SupportSpatialQuery()
Support spatial query. |
protected String |
transform(String xml,
Transformer transformer)
Transformer convinient method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchXslProfile()
public SearchXslProfile(String sid, String sname, String sdescription)
sid
- the sidsname
- the snamesdescription
- the sdescriptionpublic SearchXslProfile(String id, String name, String description, String kvp, String requestxslt, String responsexslt, String metadataxslt, boolean livedatamap, boolean extentsearch)
livedatamap
- the livedatamapextentsearch
- the extentsearchid
- the idname
- the namedescription
- the descriptionkvp
- the kvprequestxslt
- the requestxsltresponsexslt
- the responsexsltmetadataxslt
- the metadataxsltMethod Detail |
---|
public boolean isSupportsFullMetadataAtSearch()
public boolean isHarvestable()
public void setHarvestable(boolean harvestable)
harvestable
- the new harvestablepublic void setSupportsFullMetadataAtSearch(boolean supportsFullMetadataAtSearch)
supportsFullMetadataAtSearch
- the new supports full metadata at searchpublic boolean isSupportsSpatialQuery()
public void setSupportsSpatialQuery(boolean supportsSpatialQuery)
supportsSpatialQuery
- the new supports spatial querypublic boolean isSupportsContentTypeQuery()
public void setSupportsContentTypeQuery(boolean supportsContentTypeQuery)
supportsContentTypeQuery
- the new supports content type querypublic boolean isSupportsSpatialBoundary()
public void setSupportsSpatialBoundary(boolean supportsSpatialBoundary)
supportsSpatialBoundary
- the new supports spatial boundarypublic abstract void readGetMetadataByIDResponse(String response, RD record) throws TransformerException
response
- the responserecord
- the record
TransformerException
- the transformer exceptionpublic void readGetRecordsResponse(String responseString, QueryResult<RS> searchResult) throws TransformerException, ParserConfigurationException, SAXException, IOException, XPathExpressionException
responseString
- the response stringsearchResult
- the search results (will be filled with SearchXslRecords)
TransformerException
- the transformer exception
ParserConfigurationException
- the parser configuration exception
SAXException
- the sAX exception
IOException
- Signals that an I/O exception has occurred.
XPathExpressionException
- the x path expression exceptionpublic boolean SupportContentTypeQuery()
public boolean SupportSpatialBoundary()
public boolean SupportSpatialQuery()
public String getDescription()
public void setDescription(String description)
description
- the new descriptionpublic boolean isFilter_extentsearch()
public void setFilter_extentsearch(boolean filter_extentsearch)
filter_extentsearch
- the new filter_extentsearchpublic boolean isFilter_livedatamap()
public void setFilter_livedatamap(boolean filter_livedatamap)
filter_livedatamap
- the new filter_livedatamappublic String getId()
public void setId(String id)
id
- the new idpublic String getKvp()
public void setKvp(String kvp)
kvp
- the new kvppublic String getMetadataxslt()
public void setMetadataxslt(String metadataxslt)
metadataxslt
- the new metadataxsltpublic XsltTemplate getMetadataxsltobj()
public void setMetadataxsltobj(XsltTemplate metadataxsltobj)
metadataxsltobj
- the new metadataxsltobjpublic String getName()
public void setName(String name)
name
- the new namepublic String getRequestxslt()
public void setRequestxslt(String requestxslt)
requestxslt
- the new requestxsltpublic XsltTemplate getRequestxsltobj() throws TransformerConfigurationException, IOException
TransformerConfigurationException
- on xslt template creation error
IOException
- Signals that an I/O exception has occurred.public void setRequestxsltobj(XsltTemplate requestxsltobj)
requestxsltobj
- the new requestxsltobjpublic String getResponsexslt()
public void setResponsexslt(String responsexslt)
responsexslt
- the new response XSLTpublic XsltTemplate getResponsexsltobj() throws TransformerConfigurationException, IOException
CSWException
TransformerConfigurationException
IOException
public XsltTemplate getMetadataXsltObj() throws TransformerConfigurationException
CSWException
TransformerConfigurationException
public void setResponsexsltobj(XsltTemplate responsexsltobj)
responsexsltobj
- the new response XSLT Objectpublic TransformerFactory getFactory()
protected String transform(String xml, Transformer transformer) throws TransformerException
xml
- the xmltransformer
- the transformer
TransformerException
- the transformer exceptionprotected void readIntermidiateGetRecordById(String response, SearchXslRecord record) throws TransformerConfigurationException, TransformerException
response
- the responserecord
- the record
TransformerConfigurationException
- the transformer configuration exception
TransformerException
- the transformer exceptionpublic SearchXslRecord getRecordById(String responseStr, String uuid, String requestUrl) throws IOException, TransformerException, NullReferenceException, InvalidOperationException, SearchException
responseStr
- the respons struuid
- the uuidrequestUrl
- the request url
IOException
- Signals that an I/O exception has occurred.
TransformerException
- the transformer exception
NullReferenceException
- the null reference exception
InvalidOperationException
- the invalid operation exception
SearchException
public SearchXslProfile.FORMAT_SEARCH_TO_XSL getFormatRequestToXsl()
public void setFormatRequestToXsl(SearchXslProfile.FORMAT_SEARCH_TO_XSL formatRequestToXsl)
formatRequestToXsl
- the new format request to xslpublic String generateGetRecordsRequest(SearchCriteria criteria, Map<String,String> xslParams, boolean hitsOnly) throws TransformerException, ParserConfigurationException, SAXException, IOException, SearchException, XPathExpressionException
criteria
- the criteriaxslParams
- the xsl paramshitsOnly
- Indicates whether this is a hits only request
TransformerException
- the transformer exception
ParserConfigurationException
- the parser configuration exception
SAXException
- the sAX exception
IOException
- Signals that an I/O exception has occurred.
SearchException
- the search exception
XPathExpressionException
- the x path expression exception
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |