Class MCRQLSearchServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.solr.search.MCRQLSearchServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class MCRQLSearchServlet extends MCRServlet
See Also:
  • Constructor Details

    • MCRQLSearchServlet

      public MCRQLSearchServlet()
  • Method Details

    • init

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

      public void doGetPost(MCRServletJob job) throws IOException, jakarta.servlet.ServletException, TransformerException, SAXException
      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:
      IOException
      jakarta.servlet.ServletException
      TransformerException
      SAXException
    • showResults

      protected void showResults(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, MCRQuery query, Document input) throws IOException, jakarta.servlet.ServletException
      Throws:
      IOException
      jakarta.servlet.ServletException
    • sendRedirect

      protected void sendRedirect(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, MCRQuery query, Document input) throws IOException
      Throws:
      IOException
    • getReservedParameterString

      protected String getReservedParameterString(Map<String,String[]> requestParameter)
      This method is used to convert all parameters which starts with XSL. to a String.
      Parameters:
      requestParameter - the map of parameters (not XSL parameter will be skipped)
      Returns:
      a string which contains all parameters with a leading &
    • getReqParameter

      protected String getReqParameter(jakarta.servlet.http.HttpServletRequest req, String name, String defaultValue)