Package org.mycore.solr.search
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
- See Also:
-
Field Summary
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
doGetPost
(MCRServletJob job) This method should be overwritten by other servlets.protected String
getReqParameter
(jakarta.servlet.http.HttpServletRequest req, String name, String defaultValue) protected String
getReservedParameterString
(Map<String, String[]> requestParameter) This method is used to convert all parameters which starts with XSL. to aString
.void
init()
protected void
sendRedirect
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, MCRQuery query, Document input) protected void
showResults
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, MCRQuery query, Document input) 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
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
MCRQLSearchServlet
public MCRQLSearchServlet()
-
-
Method Details
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
init
in classMCRServlet
- 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 classMCRServlet
- 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
This method is used to convert all parameters which starts with XSL. to aString
.- Parameters:
requestParameter
- the map of parameters (not XSL parameter will be skipped)- Returns:
- a string which contains all parameters with a leading &
-
getReqParameter
-