public class SRU extends CrossQuery
config, decimalFormat, profListener
stylesheetCache
Constructor and Description |
---|
SRU() |
Modifier and Type | Method and Description |
---|---|
protected void |
apply(AttribList attribs,
HttpServletRequest req,
HttpServletResponse res)
Creates the query request, processes it, and formats the results.
|
private boolean |
directOutput(EasyNode node,
String name,
HttpServletResponse res)
Scans the node and its descendants for an SRW 'explainResponse' or
'diagnostics'.
|
TextConfig |
getConfig()
Retrieves the current configuration information (that was read in by
readConfig()).
|
String |
getConfigName()
Called by the superclass to find out the name of our specific config
file.
|
String |
getServletInfo()
Informational method required by Servlet interface.
|
protected TextConfig |
readConfig(String configPath)
Loads the specific configuration file for crossQuery.
|
protected boolean |
shuntQueryReq(HttpServletRequest req,
HttpServletResponse res,
Source queryReqDoc)
Called right after the raw query request has been generated, but
before it is parsed.
|
protected String |
stepSetup(HttpServletRequest req,
HttpServletResponse res)
Add additional stuff to the usual debug step mode
|
doGet, formatHits, runQueryParser, runQueryRouter
addParam, addToken, addTokens, buildParamBlock, calcMimeType, convertUTF8inURL, cqlTokenize, createFilteredReceiver, createQueryProcessor, decodeURL, defaultTokenize, destroy, doPost, genErrorPage, getCurRequest, getCurResponse, getCurServlet, getRealPath, getRequestURL, getRequestURL, getText, isEmpty, isSessionTrackingEnabled, makeAttribList, makeHtmlString, makeHtmlString, rawTokenize, readBranding, requireOrElse, restoreWildcards, saveWildcards, service, setErrorGenSheet, setupTrace, stuffAttribs, stuffAttribs, stuffSpecialAttribs
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
public String getConfigName()
CrossQuery
getConfigName
in class CrossQuery
protected TextConfig readConfig(String configPath)
CrossQuery
readConfig
in class CrossQuery
configPath
- Path to the configuration filepublic TextConfig getConfig()
CrossQuery
getConfig
in class CrossQuery
public String getServletInfo()
CrossQuery
getServletInfo
in interface Servlet
getServletInfo
in class CrossQuery
protected void apply(AttribList attribs, HttpServletRequest req, HttpServletResponse res) throws Exception
CrossQuery
apply
in class CrossQuery
attribs
- Attributes to pass to the stylesheets.req
- The original HTTP requestres
- Where to send the responseException
- Passes on various errors that might occur.protected boolean shuntQueryReq(HttpServletRequest req, HttpServletResponse res, Source queryReqDoc) throws IOException
shuntQueryReq
in class CrossQuery
IOException
protected String stepSetup(HttpServletRequest req, HttpServletResponse res) throws IOException
stepSetup
in class CrossQuery
req
- The HTTP request (in)res
- The HTTP response (out)IOException
private boolean directOutput(EasyNode node, String name, HttpServletResponse res) throws IOException
node
- Node to scanname
- Name to scan forIOException