public static class ViewDocumentRequest.Response extends SearchResponse
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
mMultiPartitionSearch
Constructor and Description |
---|
Response(atg.search.routing.command.SearchEngineResponse response)
Constructs a response from an engine's response
|
Response(ViewDocumentRequest pRequest,
java.util.List<SearchResponse> pParsedResponses)
This Java Merge instead of the engine's merge.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDocContextId()
Returns Document identifier plus highlight regions
|
ViewedDocument |
getDocument()
Returns the Document of the result
|
java.lang.String |
getDocumentText()
Returns the document's text if this was a normal View request, otherwise null
|
java.lang.String |
getHighlightInfo()
Returns highlight information
|
java.lang.String |
getInput()
Returns original user input
|
ItemInspect |
getItemInspect()
Returns item inspection
|
ParserOptions |
getParserOptions()
Returns text processing options
|
ViewDocumentRequest.Return |
getReturn()
Returns the return type
|
java.lang.String |
getURL()
Returns the URL of document
|
protected void |
merge(SearchRequest pRequest,
java.util.List<SearchResponse> pParsedResponses)
This is Java merge.
|
void |
setDocContextId(java.lang.String docContextId)
Sets Document identifier plus highlight regions
|
void |
setDocument(ViewedDocument document)
Sets Document of the result
|
void |
setDocumentText(java.lang.String documentText)
Sets the document's text
|
void |
setHighlightInfo(java.lang.String highlightInfo)
Sets highlight information
|
void |
setInput(java.lang.String input)
Sets original user input
|
void |
setItemInspect(ItemInspect pItem)
Sets item inspection
|
void |
setParserOptions(ParserOptions parserOptions)
Sets text processing options
|
void |
setReturn(ViewDocumentRequest.Return aReturn)
Sets the return type
|
void |
setURL(java.lang.String URL)
Sets URL of document
|
addError, getBuildTimeMs, getContentId, getErrors, getListableProperties, getMergeTimeMs, getParseTimeMs, getPartitionResponses, getRequestChainToken, getRequestIdentifier, getRequestTime, getSearchTargetNames, getTotalResponseTimeMs, getXmlString, handleMerge, isAllowListProperties, isLocalMergeEnabled, isMultiPartitionSearch, isOverloaded, isTimedOut, setAllowListProperties, setBuildTimeMs, setErrors, setListableProperties, setLocalMergeEnabled, setMergeTimeMs, setMultiPartitionSearch, setParseTimeMs, setPartitionResponses, setRequestChainToken, setRequestIdentifier, setRequestTime, setSearchTargetNames, setTotalResponseTimeMs, toString
getNextResponse, getNonSAXParser, getRequestTag, getSearchEngineResponse, parseResponse, setNextResponse, setSearchEngineResponse
appendComplexXml, appendOptionalAttr, appendOptionalElem, appendOptionalElem, appendOptionalElem, appendOptionalValue, appendRequiredAttr, appendRequiredElem, appendRequiredElem, appendRequiredValue, getAllAttributeXML, getAllBodyXML, getAttributeXML, getBodyXML, getDefaultXmlBytes, getParentXMLObject, getXmlPath, isPrintedFirstChild, setParentXMLObject, setPrintedFirstChild, toXML, toXML
public static final java.lang.String CLASS_VERSION
public Response(ViewDocumentRequest pRequest, java.util.List<SearchResponse> pParsedResponses) throws atg.search.routing.MergeException
#merge(atg.search.routing.command.search.ViewDocumentRequest,SearchResponse[])
.pRequest
- original requestpParsedResponses
- parsed responsesatg.search.routing.MergeException
public Response(atg.search.routing.command.SearchEngineResponse response)
response
- an engine's responseprotected void merge(SearchRequest pRequest, java.util.List<SearchResponse> pParsedResponses) throws atg.search.routing.MergeException
merge
in class SearchResponse
pRequest
- the original requestpParsedResponses
- pre-parsed responsesatg.search.routing.MergeException
- if the merge failspublic java.lang.String getDocumentText()
public void setDocumentText(java.lang.String documentText)
documentText
- the document's textpublic java.lang.String getInput()
public void setInput(java.lang.String input)
input
- original user inputpublic ViewDocumentRequest.Return getReturn()
public void setReturn(ViewDocumentRequest.Return aReturn)
aReturn
- the return typepublic java.lang.String getURL()
public void setURL(java.lang.String URL)
URL
- URL of documentpublic java.lang.String getHighlightInfo()
public void setHighlightInfo(java.lang.String highlightInfo)
highlightInfo
- highlight informationpublic java.lang.String getDocContextId()
public void setDocContextId(java.lang.String docContextId)
docContextId
- Document identifier plus highlight regionspublic ViewedDocument getDocument()
public void setDocument(ViewedDocument document)
document
- the Document of the resultpublic ItemInspect getItemInspect()
public void setItemInspect(ItemInspect pItem)
pItem
- item inspectionpublic ParserOptions getParserOptions()
public void setParserOptions(ParserOptions parserOptions)
parserOptions
- text processing options