|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.search.routing.command.SearchXMLObject atg.search.routing.command.SearchEngineCommandResponse atg.search.routing.command.search.SearchResponse atg.search.routing.command.search.TypeAheadRequest.Response
public static class TypeAheadRequest.Response
Response class for the TypeAheadRequest class
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.search.routing.command.search.SearchResponse |
---|
mMultiPartitionSearch |
Constructor Summary | |
---|---|
TypeAheadRequest.Response(atg.search.routing.command.SearchEngineResponse response)
Constructor for a new response. |
|
TypeAheadRequest.Response(SearchRequest pRequest,
java.util.List<SearchResponse> pParsedResponses)
|
Method Summary | |
---|---|
protected void |
getAttributeXML(java.lang.StringBuilder sb)
|
protected void |
getBodyXML(java.lang.StringBuilder sb)
|
java.util.List<java.lang.String> |
getClasses()
Type Ahead data may also include optional String class values. |
java.util.List<java.lang.String> |
getIds()
Type Ahead data consists of matchable strings and optional String id values. |
java.lang.String |
getMatch()
Get the string that the engine matched on in processing the Request. |
java.lang.String |
getRequestTag()
|
java.util.List<java.lang.String> |
getStrings()
Get the list of matching strings found by the engine when processing the request |
java.util.List<java.lang.Integer> |
getValues()
Type Ahead data consists of matchable strings and associated integer values. |
protected void |
merge(SearchRequest pRequest,
java.util.List<SearchResponse> pParsedResponses)
This is local merge. |
Methods inherited from class atg.search.routing.command.SearchEngineCommandResponse |
---|
getNextResponse, getNonSAXParser, getSearchEngineResponse, parseResponse, setNextResponse, setSearchEngineResponse |
Methods inherited from class atg.search.routing.command.SearchXMLObject |
---|
appendComplexXml, appendOptionalAttr, appendOptionalElem, appendOptionalElem, appendOptionalElem, appendOptionalValue, appendRequiredAttr, appendRequiredElem, appendRequiredElem, appendRequiredValue, getAllAttributeXML, getAllBodyXML, getDefaultXmlBytes, getParentXMLObject, getXmlPath, isPrintedFirstChild, setParentXMLObject, setPrintedFirstChild, toXML, toXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CLASS_VERSION
Constructor Detail |
---|
public TypeAheadRequest.Response(atg.search.routing.command.SearchEngineResponse response)
response
- the SearchEngineResponse object from the associated request.public TypeAheadRequest.Response(SearchRequest pRequest, java.util.List<SearchResponse> pParsedResponses) throws atg.search.routing.MergeException
atg.search.routing.MergeException
Method Detail |
---|
public java.lang.String getMatch()
public java.util.List<java.lang.String> getStrings()
public java.util.List<java.lang.Integer> getValues()
public java.util.List<java.lang.String> getIds()
public java.util.List<java.lang.String> getClasses()
protected void merge(SearchRequest pRequest, java.util.List<SearchResponse> pParsedResponses) throws atg.search.routing.MergeException
SearchResponse
SearchEngineResponse
or provide any timing.
The Response class must provide a constructor that looks like the one below and invokes
SearchResponse.handleMerge(atg.search.routing.command.search.SearchRequest,java.util.List)
.
The implementation of this method should only handle merge. See QueryRequest.Response.merge(SearchRequest, java.util.List)
public Response(YourRequest pRequest,
List<SearchResponse> pParsedResponses) throws MergeException
{
handleMerge(pRequest, pParsedResponses);
}
merge
in class SearchResponse
pRequest
- the original requestpParsedResponses
- pre-parsed responses
atg.search.routing.MergeException
- if the merge failspublic java.lang.String getRequestTag()
getRequestTag
in class atg.search.routing.command.SearchEngineCommandResponse
protected void getAttributeXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
getAttributeXML
in class atg.search.routing.command.SearchXMLObject
atg.search.routing.command.IncompleteCommandException
protected void getBodyXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
getBodyXML
in class atg.search.routing.command.SearchXMLObject
atg.search.routing.command.IncompleteCommandException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |