uk.ac.ebi.intenz.webapp.controller
Class SearchCommand
java.lang.Object
uk.ac.ebi.intenz.webapp.controller.Command
uk.ac.ebi.intenz.webapp.controller.DatabaseCommand
uk.ac.ebi.intenz.webapp.controller.SearchCommand
public class SearchCommand
- extends DatabaseCommand
This class processes all full text queries.
All queries are processed using the UTF-8 encoded (octet sequences) representation sent by browsers.
Rather than using request.getParameter(...)
this class decodes the query string manually, since
request.getParameter(...)
does not decode the octet sequences correctly, if special characters encoded
as two or more octets are transmitted.
See the XChars
library documentation for more information regarding UTF-8 octet sequence decoding.
TODO: Implement a query parser.
- Version:
- 2.0 - 13-July-2004
- Author:
- Michael Darsow
Field Summary |
static org.apache.log4j.Logger |
LOGGER
|
Method Summary |
void |
process()
Processes the full text query. |
String |
transformQuery(String query,
uk.ac.ebi.intenz.webapp.controller.SearchCommand.QueryType queryType,
boolean exclusion)
|
LOGGER
public static final org.apache.log4j.Logger LOGGER
SearchCommand
public SearchCommand()
process
public void process()
throws javax.servlet.ServletException,
IOException
- Processes the full text query.
The query string is parsed, decoded, checked and integrated into a SQL statement.
After execution the result is being sent to the browser (if any).
Exceptions regarding this process are caught and the user is informed accordingly.
- Specified by:
process
in class Command
- Throws:
javax.servlet.ServletException
- ...
IOException
- ...
transformQuery
public String transformQuery(String query,
uk.ac.ebi.intenz.webapp.controller.SearchCommand.QueryType queryType,
boolean exclusion)
throws QueryException
- Throws:
QueryException
Copyright © 2013 EMBL-EBI. All Rights Reserved.