Class Response
- java.lang.Object
-
- edu.indiana.lib.twinpeaks.search.SearchResultBase
-
- edu.indiana.lib.twinpeaks.search.singlesearch.musepeer.Response
-
- All Implemented Interfaces:
SearchResultInterface
public class Response extends SearchResultBase
Parse the Musepeer XML response
-
-
Field Summary
-
Fields inherited from class edu.indiana.lib.twinpeaks.search.SearchResultBase
_baseUrl, _database, _searchQuery, _searchResponseBytes, _searchResponseDocument, _searchResponseString, _sessionId
-
-
Constructor Summary
Constructors Constructor Description Response()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoParse()Parse the responsevoidinitialize(QueryBase query)Save various attributes of the general search requestprotected DocumentparseResponse()Parse the search engine response as XML 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 response as XML OverridesSearchResultBase#parseResponse()- Overrides:
parseResponsein classSearchResultBase- Returns:
- Response as a DOM Document
- Throws:
SearchException
-
doParse
public void doParse()
Parse the response
-
-