public class Query extends SruQueryBase implements Constants
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SORT_KEY
Default sort key
|
static String |
RECORDS_PER_PAGE
Records displayed "per page" (default value)
|
SRU_EXPLAIN, SRU_MAX_RECORD, SRU_OPERATION, SRU_QUERY, SRU_RECORD_PACKING, SRU_RECORD_SCHEMA, SRU_SEARCH_RETRIEVE, SRU_SORT, SRU_START_RECORD, SRU_STATUS, SRU_VERSIONCS_ACTION, CS_CATEGORIES, CS_CONTINUE, CS_DATABASES, CS_GROUPS, CS_SCHEMA, CS_SRU_VERSION, NS_CS, NS_DC, NS_DCTERMS, NS_SRWMETHOD_GET, METHOD_POST, REDIRECT_AUTOMATIC, REDIRECT_MANAGED, REDIRECT_MANAGED_SINGLESTEP| Constructor and Description |
|---|
Query()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doNewPage()
Set up for pagination (method = GET)
Set up the required "searchRetrieve" parameters for pagination
Set the global _url (the base URL)
|
protected void |
doNewSearch()
Set up a URL for the new search (method = GET)
Set up the required SRU "searchRetrieve" parameters
Set the global _url (the base URL plus all SRU parameters)
|
void |
doQuery()
Search
|
protected void |
flagInitialSearchComplete()
Clear the "start a new search" flag
|
protected void |
flagSearchInProgress()
Set the "start a new search" flag
|
protected String |
formatDatabaseList(String databaseList)
Build up comma separated database list
|
protected boolean |
isNewPage()
Is this a new page (pagination, not a brand new search)?
|
void |
parseRequest(Map parameterMap)
Parse user request parameters.
|
protected void |
parseStatusRecord(Document responseDocument)
Parse the status record.
|
protected void |
postNewPage()
Set up a URL for pagination (method = POST)
Set up the required "searchRetrieve" parameters for pagination
Set the global _url (the base URL plus all pagination parameters)
|
protected void |
postNewSearch()
Set up a URL for the new search (method = POST)
Set up the required SRU "searchRetrieve" parameters
Set the global _url (the base URL plus all SRU parameters)
|
protected String |
saveResultSetId(Document responseDocument)
Look up the result set ID (and save it in session state)
|
int |
submit()
Custom submit behavior (override HttpTransactionQueryBase)
|
protected String |
xcsContinue()
Make a 360 Search "continue" parameter
|
protected String |
xcsDatabase(String databaseList)
Make the database list (SRU extension)
|
protected void |
xcsPostContinue()
Make a 360 Search "continue" parameter
|
protected void |
xcsPostDatabase(String databaseList)
Make the database list (SRU extension)
|
addFirstParameter, addParameter, appendItems, formatParameter, normalizeParameter, sruExplain, sruMaximumRecords, sruMaximumRecords, sruOperation, sruPostExplain, sruPostMaximumRecords, sruPostMaximumRecords, sruPostOperation, sruPostQuery, sruPostRecordPacking, sruPostRecordSchema, sruPostSearchRetrieve, sruPostSort, sruPostStartRecord, sruPostStartRecord, sruPostStatus, sruPostVersion, sruQuery, sruRecordPacking, sruRecordSchema, sruSearchRetrieve, sruSort, sruStartRecord, sruStartRecord, sruStatus, sruVersionclearParameters, getBody, getFollowRedirects, getFormElement, getParameter, getParameterName, getQueryDocument, getQueryMethod, getQueryUrl, getResponseBytes, getResponseCharacterSet, getResponseDocument, getResponseHeader, getResponseString, getSearchString, getSessionContext, getSessionParameter, getSessionValue, getUrl, initialize, newFullUrl, removeQueryUrl, removeSessionParameter, setDefaultCharacterSet, setParameter, setParametersFromFormInputs, setParametersFromInputNames, setParametersFromInputs, setParametersFromInputValues, setParametersFromNameList, setParametersFromValueList, setPreserveBaseUrlFile, setQueryDocument, setQueryMethod, setQueryUrl, setRedirectBehavior, setSearchString, setSessionParameter, setSessionValue, setUrl, setUrl, setUrlFromAnchor, setUrlFromFormgetIntegerRequestParameter, getRequestParameter, getRequestParameterMap, populateRequestParameterspublic static final String RECORDS_PER_PAGE
public static final String DEFAULT_SORT_KEY
public void parseRequest(Map parameterMap)
parseRequest in interface QueryInterfaceparseRequest in class QueryBaseparameterMap - Request details (name=value pairs)public void doQuery()
doQuery in interface QueryInterfaceprotected void doNewSearch()
protected void postNewSearch()
protected void doNewPage()
protected void postNewPage()
protected void parseStatusRecord(Document responseDocument)
responseDocument - The server responseprotected String saveResultSetId(Document responseDocument)
responseDocument - The server responsepublic int submit()
submit in class HttpTransactionQueryBaseprotected String xcsDatabase(String databaseList)
databaseList - The list of databasesprotected String xcsContinue()
protected void xcsPostDatabase(String databaseList)
databaseList - The list of databasesprotected void xcsPostContinue()
protected String formatDatabaseList(String databaseList)
databaseList - Databases: db1 bd2 bd3db1,bd2,bd3protected boolean isNewPage()
protected void flagInitialSearchComplete()
protected void flagSearchInProgress()
Copyright © 2004–2018 Indiana University Library Information Technology. All rights reserved.