Package org.mycore.solr.proxy
Class MCRSolrProxyServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.solr.proxy.MCRSolrProxyServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
This class implements a proxy for access to the SOLR backend.
With the following configuration properties you can manipulate the response header. The entries will be replace the attributes of the incomming header. If the new attribute text is empty, it will be remove the attribute.
MCR.Solr.HTTPResponseHeader.{response_header_attribute_name}={new_response_header_attribute} MCR.Solr.HTTPResponseHeader....=
You can set the maximum of connections to the SOLR server with the property
MCR.Solr.SelectProxy.MaxConnections={number}
With the following configuration properties you can manipulate the response header. The entries will be replace the attributes of the incomming header. If the new attribute text is empty, it will be remove the attribute.
MCR.Solr.HTTPResponseHeader.{response_header_attribute_name}={new_response_header_attribute} MCR.Solr.HTTPResponseHeader....=
You can set the maximum of connections to the SOLR server with the property
MCR.Solr.SelectProxy.MaxConnections={number}
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Attribute key to store Query parameters asMap<String, String[]>
for SOLR.static final String
static final String
static final String
Attribute key to store aSolrQuery
.Fields inherited from class org.mycore.frontend.servlets.MCRServlet
ATTR_MYCORE_SESSION, CURRENT_THREAD_NAME_KEY, INITIAL_SERVLET_NAME_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
protected void
doGetPost
(MCRServletJob job) This method should be overwritten by other servlets.void
init()
Methods inherited from class org.mycore.frontend.servlets.MCRServlet
allowCrossDomainRequests, buildRedirectURL, cleanupMCRSession, doGet, doGet, doPost, doPost, getErrorI18N, getLastModified, getLayoutService, getProperty, getReferer, getServletBaseURL, getSession, handleException, initializeMCRSession, render, reportException, think, toReferrer, toReferrer
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, service, service
Methods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
MAP_KEY
Attribute key to store Query parameters asMap<String, String[]>
for SOLR. This takes precedence over anyHttpServletRequest
parameter. -
QUERY_KEY
Attribute key to store aSolrQuery
. This takes precedence overMAP_KEY
or anyHttpServletRequest
parameter. -
QUERY_HANDLER_PAR_NAME
- See Also:
-
QUERY_CORE_PARAMETER
- See Also:
-
-
Constructor Details
-
MCRSolrProxyServlet
public MCRSolrProxyServlet()
-
-
Method Details
-
doGetPost
Description copied from class:MCRServlet
This method should be overwritten by other servlets. As a default response we indicate the HTTP 1.1 status code 501 (Not Implemented).- Overrides:
doGetPost
in classMCRServlet
- Throws:
Exception
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
init
in classMCRServlet
- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroy
in interfacejakarta.servlet.Servlet
- Overrides:
destroy
in classjakarta.servlet.GenericServlet
-