public class SolrClientController
extends org.springframework.web.servlet.mvc.multiaction.MultiActionController
Modifier and Type | Field and Description |
---|---|
Map<String,String> |
datasourceMapNames
Hashmap of names -vs- datasources .
|
boolean |
debug
Boolean flag which controls database access (must be true for db usage).
|
String |
fromEMAIL
Email address which will show up as the
"from in error email notifications"
|
boolean |
singletonFullView
Boolean switch for returning full -vs- brief page if response size equals
one.
|
String |
solrdb
Full path to the MySQL database for this Instance as parsed from the XML.
|
String |
solrSelectURL
Full URL for accessing the SOLR Index for the current mercury Instance,
as parsed from XML file.
|
HashMap<String,String> |
term1Map
Hash map containing the term1 attribute constraints.
|
HashMap<String,String> |
termMap
Local holder for the allowed terms and map to full names for the view.
|
String |
toEMAIL
Email To address for error notifications
|
boolean |
transformFullPage
Boolean flag which controls fullPage display behavior (must be true for
transforms to be employed).
|
DEFAULT_COMMAND_NAME, LAST_MODIFIED_METHOD_SUFFIX, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger
Constructor and Description |
---|
SolrClientController()
Instantiates a new solr client controller.
|
Modifier and Type | Method and Description |
---|---|
String |
build_base_request(Search_Terms st)
Builds an embeddable querystring from the terms contained in the
search_terms object.
|
org.springframework.web.servlet.ModelAndView |
echoOpenSearch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Echo OpenSearch.
|
org.springframework.web.servlet.ModelAndView |
esip_opensearch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
EsipOpenSearchBean esip) |
org.springframework.web.servlet.ModelAndView |
facetsQuerry2(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Facets querry2.
|
Search_Terms |
get_base_st(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Constructs a search_terms object by parsing the request.
|
void |
get_solr_json(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Gets the JSON Array for a web based tree node using a HttpServletResponse
writer object .
|
void |
get_TM_json(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Gets the JSON Array for a TimeMap using a HttpServletResponse writer
object .
|
String |
getPageNavBar(int tCurPage,
int tPageSize,
int tRsSize,
int tPageCnt,
String tPrevText,
String tNextText,
String pageName) |
String |
getPageNavBar(int tCurPage,
int tPageSize,
int tRsSize,
int tPageCnt,
String tPrevText,
String tNextText,
String pageName,
String mercury3_query_string,
Search_Terms st)
Gets the page nav bar.
|
org.springframework.web.servlet.ModelAndView |
lpdaac_granule_opensearch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
OpenSearchBean opensearch) |
org.springframework.web.servlet.ModelAndView |
multiple_facets(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
ArrayList |
nu_get_base_st(javax.servlet.http.HttpServletRequest request,
String PathInfo)
Nu_get_base_st.
|
org.springframework.web.servlet.ModelAndView |
opensearch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
OpenSearchBean opensearch) |
org.springframework.web.servlet.ModelAndView |
processCustomMLT(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process custom mlt.
|
org.springframework.web.servlet.ModelAndView |
processCustomRss(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process custom rss.
|
org.springframework.web.servlet.ModelAndView |
processRss(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process rss.
|
org.springframework.web.servlet.ModelAndView |
query(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Entry point for the Mercury Querying process.
|
org.springframework.web.servlet.ModelAndView |
referralReDirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SolrTransactionDetail solrTransactionDetail)
Referral re direct.
|
org.springframework.web.servlet.ModelAndView |
results_navigation2(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Results_navigation2.
|
org.springframework.web.servlet.ModelAndView |
solrPass(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Solr pass through to avoid same origin policy restrictions on xhr calls
to solr when mercury is running on another host than the index.
|
org.springframework.web.servlet.ModelAndView |
xsltText2(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Xslt text2.
|
bind, createBinder, getCommandName, getExceptionHandler, getLastModified, getMethodNameResolver, getValidators, getWebBindingInitializer, handleNoSuchRequestHandlingMethod, handleRequestInternal, initBinder, initBinder, invokeNamedMethod, newCommandObject, setDelegate, setMethodNameResolver, setValidators, setWebBindingInitializer
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
public String toEMAIL
public String fromEMAIL
public boolean debug
public boolean transformFullPage
public boolean singletonFullView
public HashMap<String,String> termMap
public HashMap<String,String> term1Map
public String solrdb
public String solrSelectURL
public SolrClientController()
public org.springframework.web.servlet.ModelAndView solrPass(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
request
- response
- Exception
public void get_solr_json(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws Exception
req
- the HttpServletRequestresp
- the HttpServletResponseException
- the exceptionpublic void get_TM_json(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws Exception
req
- the HttpServletRequestresp
- the HttpServletResponseException
- the exceptionpublic org.springframework.web.servlet.ModelAndView query(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
request
- the HttpServletRequestresponse
- the HttpServletResponseException
- the exceptionpublic org.springframework.web.servlet.ModelAndView facetsQuerry2(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
request
- the HttpServletRequestresponse
- the HttpServletResponseException
- the exceptionpublic org.springframework.web.servlet.ModelAndView results_navigation2(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
request
- the HttpServletRequestresponse
- the HttpServletResponseException
- the exceptionpublic org.springframework.web.servlet.ModelAndView xsltText2(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
request
- the HttpServletRequestresponse
- the HttpServletResponseException
- the exception
modified 10/2011 add switch logic for full page transforms
jmgpublic org.springframework.web.servlet.ModelAndView referralReDirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SolrTransactionDetail solrTransactionDetail) throws Exception
request
- the HttpServletRequestresponse
- the HttpServletResponsesolrTransactionDetail
- the solr transaction detailException
- the exceptionpublic org.springframework.web.servlet.ModelAndView esip_opensearch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, EsipOpenSearchBean esip) throws Exception
request
- the HttpServletRequestresponse
- the HttpServletResponseesip
- command bean with the request paramsException
public org.springframework.web.servlet.ModelAndView opensearch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, OpenSearchBean opensearch) throws Exception
request
- the HttpServletRequestresponse
- the HttpServletResponseopensearch
- command bean with the validated request paramsException
public org.springframework.web.servlet.ModelAndView lpdaac_granule_opensearch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, OpenSearchBean opensearch) throws Exception
request
- the HttpServletRequestresponse
- the HttpServletResponseopensearch
- command bean with the validated request paramsException
public org.springframework.web.servlet.ModelAndView processRss(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
request
- the HttpServletRequestresponse
- the HttpServletResponseException
- the exceptionpublic org.springframework.web.servlet.ModelAndView echoOpenSearch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
request
- the HttpServletRequestresponse
- the HttpServletResponseException
- the exceptionpublic org.springframework.web.servlet.ModelAndView processCustomRss(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
request
- the HttpServletRequestresponse
- the HttpServletResponseException
- the exceptionpublic org.springframework.web.servlet.ModelAndView processCustomMLT(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
request
- the HttpServletRequestresponse
- the HttpServletResponseException
- the exceptionpublic org.springframework.web.servlet.ModelAndView multiple_facets(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
public String getPageNavBar(int tCurPage, int tPageSize, int tRsSize, int tPageCnt, String tPrevText, String tNextText, String pageName)
public String getPageNavBar(int tCurPage, int tPageSize, int tRsSize, int tPageCnt, String tPrevText, String tNextText, String pageName, String mercury3_query_string, Search_Terms st)
tCurPage
- the t cur pagetPageSize
- the t page sizetRsSize
- the t rs sizetPageCnt
- the t page cnttPrevText
- the t prev texttNextText
- the t next textpageName
- the page namemercury3_query_string
- the mercury3_query_stringst
- the stpublic ArrayList nu_get_base_st(javax.servlet.http.HttpServletRequest request, String PathInfo) throws Exception
request
- the HttpServletRequestPathInfo
- the path infoException
- the exceptionpublic Search_Terms get_base_st(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
request
- the HttpServletRequestresponse
- the HttpServletResponseException
- the exceptionpublic String build_base_request(Search_Terms st) throws Exception
st
- the search terms objectException
Copyright © 2016. All rights reserved.