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

public class MCRSolrProxyServlet extends MCRServlet
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}
See Also:
  • Field Details

    • MAP_KEY

      public static final String MAP_KEY
      Attribute key to store Query parameters as Map<String, String[]> for SOLR. This takes precedence over any HttpServletRequest parameter.
    • QUERY_KEY

      public static final String QUERY_KEY
      Attribute key to store a SolrQuery. This takes precedence over MAP_KEY or any HttpServletRequest parameter.
    • QUERY_HANDLER_PAR_NAME

      public static final String QUERY_HANDLER_PAR_NAME
      See Also:
    • QUERY_CORE_PARAMETER

      public static final String QUERY_CORE_PARAMETER
      See Also:
  • Constructor Details

    • MCRSolrProxyServlet

      public MCRSolrProxyServlet()
  • Method Details

    • doGetPost

      protected void doGetPost(MCRServletJob job) throws Exception
      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 class MCRServlet
      Throws:
      Exception
    • init

      public void init() throws jakarta.servlet.ServletException
      Overrides:
      init in class MCRServlet
      Throws:
      jakarta.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface jakarta.servlet.Servlet
      Overrides:
      destroy in class jakarta.servlet.GenericServlet