public class SRU extends CrossQuery
config, decimalFormat, profListenerstylesheetCache| 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, runQueryRouteraddParam, 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, stuffSpecialAttribsdoDelete, doHead, doOptions, doPut, doTrace, getLastModified, servicepublic String getConfigName()
CrossQuerygetConfigName in class CrossQueryprotected TextConfig readConfig(String configPath)
CrossQueryreadConfig in class CrossQueryconfigPath - Path to the configuration filepublic TextConfig getConfig()
CrossQuerygetConfig in class CrossQuerypublic String getServletInfo()
CrossQuerygetServletInfo in interface ServletgetServletInfo in class CrossQueryprotected void apply(AttribList attribs, HttpServletRequest req, HttpServletResponse res) throws Exception
CrossQueryapply in class CrossQueryattribs - 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 CrossQueryIOExceptionprotected String stepSetup(HttpServletRequest req,
HttpServletResponse res)
throws IOException
stepSetup in class CrossQueryreq - The HTTP request (in)res - The HTTP response (out)IOExceptionprivate boolean directOutput(EasyNode node, String name, HttpServletResponse res) throws IOException
node - Node to scanname - Name to scan forIOException