|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGenericServlet
HttpServlet
TextServlet
CrossQuery
SRU
public class SRU
The SRU servlet coordinates the process of parsing a URL query, activating the textEngine to find all occurrences, and finally formatting the results.
Field Summary |
---|
Fields inherited from class CrossQuery |
---|
config, decimalFormat |
Fields inherited from class TextServlet |
---|
stylesheetCache |
Constructor Summary | |
---|---|
SRU()
|
Method Summary | |
---|---|
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 |
Methods inherited from class CrossQuery |
---|
doGet, formatHits, runQueryParser, runQueryRouter |
Methods inherited from class HttpServlet |
---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service |
Methods inherited from class GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SRU()
Method Detail |
---|
public String getConfigName()
CrossQuery
getConfigName
in class CrossQuery
protected TextConfig readConfig(String configPath)
CrossQuery
readConfig
in class CrossQuery
configPath
- Path to the configuration file
public 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 response
Exception
- 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 for
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |