Class Response
- java.lang.Object
-
- edu.indiana.lib.twinpeaks.search.SearchResultBase
-
- edu.indiana.lib.twinpeaks.search.sru.ss360search.Response
-
- All Implemented Interfaces:
SearchResultInterface,Constants
public class Response extends SearchResultBase implements Constants
Parse the 360 Search XML response
-
-
Field Summary
-
Fields inherited from class edu.indiana.lib.twinpeaks.search.SearchResultBase
_baseUrl, _database, _searchQuery, _searchResponseBytes, _searchResponseDocument, _searchResponseString, _sessionId
-
Fields inherited from interface edu.indiana.lib.twinpeaks.search.sru.ss360search.Constants
CS_ACTION, CS_CATEGORIES, CS_CONTINUE, CS_DATABASES, CS_GROUPS, CS_SCHEMA, CS_SRU_VERSION, NS_CS, NS_DC, NS_DCTERMS, NS_SRW
-
-
Constructor Summary
Constructors Constructor Description Response()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAuthorList(Element citationElement, MatchItem item)Locate (and save) the authors (omit the normalized "first author")voiddoParse()Parse the responsevoidinitialize(QueryBase query)Save various attributes of the general search requestprotected DocumentparseResponse()Parse the search engine XML response - namespace aware OverridesSearchResultBase#parseResponse()-
Methods inherited from class edu.indiana.lib.twinpeaks.search.SearchResultBase
addItem, canPaginate, expectedNodeCount, getFullUrl, getFullUrl, getImageAttribute, getMatchCount, getNextPreviewPage, getPreviousPreviewPage, getQuery, getSearchResponseDocument, getSearchResponseString, getSearchStart, iterator, prependProxy, saveBaseUrl, setNextPreviewPage, setPreviousPreviewPage, setSearchStart, setSearchStart, toArray
-
-
-
-
Method Detail
-
initialize
public void initialize(QueryBase query)
Save various attributes of the general search request- Specified by:
initializein interfaceSearchResultInterface- Overrides:
initializein classSearchResultBase- Parameters:
query- The QueryBase extension that sent the search request
-
parseResponse
protected Document parseResponse() throws SearchException
Parse the search engine XML response - namespace aware OverridesSearchResultBase#parseResponse()- Overrides:
parseResponsein classSearchResultBase- Returns:
- Response as a DOM Document
- Throws:
SearchException
-
doParse
public void doParse()
Parse the response- Specified by:
doParsein interfaceSearchResultInterface
-
-