|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.services.fieldquery.MCRSearchServlet
public class MCRSearchServlet
This servlet executes queries and presents result pages.
| Field Summary | |
|---|---|
protected static Logger |
LOGGER
|
| Fields inherited from class org.mycore.frontend.servlets.MCRServlet |
|---|
BASE_URL_ATTRIBUTE, trustedProxies |
| Constructor Summary | |
|---|---|
MCRSearchServlet()
|
|
| Method Summary | |
|---|---|
protected MCRCondition |
cleanupQuery(Document input)
cleans the query e.g. |
void |
doGetPost(MCRServletJob job)
This method should be overwritten by other servlets. |
protected void |
doQuery(HttpServletRequest request,
HttpServletResponse response)
Executes a query that comes from editor search mask, and redirects the browser to the first results page |
protected MCRCachedQueryData |
getQueryData(HttpServletRequest request)
|
void |
init()
|
protected void |
loadQuery(HttpServletRequest request,
HttpServletResponse response)
Returns a query that was previously submitted, to reload it into the editor search mask. |
protected void |
sendRedirect(HttpServletRequest req,
HttpServletResponse res,
String id,
String numPerPage)
Redirect browser to results page |
protected void |
sendToLayout(HttpServletRequest req,
HttpServletResponse res,
Document jdom)
Forwards the document to the output |
protected void |
showResults(HttpServletRequest request,
HttpServletResponse response)
Shows a results page. |
| Methods inherited from class org.mycore.frontend.servlets.MCRServlet |
|---|
buildRedirectURL, doGet, doGet, doPost, doPost, generateActiveLinkErrorpage, generateErrorPage, getBaseURL, getLastModified, getLayoutService, getProperty, getRemoteAddr, getServletBaseURL, getSession, handleException, initTrustedProxies, render, reportException, think |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Logger LOGGER
| Constructor Detail |
|---|
public MCRSearchServlet()
| Method Detail |
|---|
public void init()
throws ServletException
init in class MCRServletServletException
public void doGetPost(MCRServletJob job)
throws IOException
MCRServlet
doGetPost in class MCRServletIOExceptionprotected MCRCachedQueryData getQueryData(HttpServletRequest request)
protected void loadQuery(HttpServletRequest request,
HttpServletResponse response)
throws IOException
IOException
protected void showResults(HttpServletRequest request,
HttpServletResponse response)
throws IOException
IOException
protected void doQuery(HttpServletRequest request,
HttpServletResponse response)
throws IOException
IOExceptionprotected MCRCondition cleanupQuery(Document input)
input - - the jdom-Document containing the query, which has to be modified
protected void sendToLayout(HttpServletRequest req,
HttpServletResponse res,
Document jdom)
throws IOException
IOExceptionoverwritten in jspdocportal
protected void sendRedirect(HttpServletRequest req,
HttpServletResponse res,
String id,
String numPerPage)
throws IOException
IOExceptionoverwritten in jspdocportal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||