| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.primus.ae.searchclient.ClientRequestImpl
public abstract class ClientRequestImpl
Base class for client requests, with implementations for most of
 ClientRequest's methods.
| Field Summary | |
|---|---|
protected  DocumentSetConstraint | 
constraints
 | 
protected  boolean | 
listPropertyAllowed
 | 
protected  boolean | 
loggingEnabled
 | 
protected  boolean | 
mLoggingThisRequest
 | 
protected  java.lang.String | 
mRequestIdentifier
 | 
protected  long | 
mRequestTime
 | 
protected  ParserOptions | 
parsingOptions
 | 
protected  java.util.Map | 
requestAttributes
 | 
| Fields inherited from interface com.primus.ae.searchclient.ClientRequest | 
|---|
BROWSE, CATEGORIZE, INSPECT, QUERY, REQUEST_TAG_BROWSE, REQUEST_TAG_CATEGORIZE, REQUEST_TAG_QUERY, REQUEST_TAG_SIMILARDOCS, REQUEST_TAG_STRUCTQUERY, REQUEST_TAG_VIC, SIMILARDOCS, STRUCTQUERY, TAGS, VIC | 
| Fields inherited from interface atg.search.routing.command.SearchEngineRequest | 
|---|
CLASS_VERSION | 
| Constructor Summary | |
|---|---|
protected  | 
ClientRequestImpl()
 | 
protected  | 
ClientRequestImpl(java.util.Map requestAttributes,
                  DocumentSetConstraint constraints,
                  ParserOptions parserOptions,
                  boolean loggingEnabled)
 | 
| Method Summary | |
|---|---|
 DocumentSetConstraint | 
getConstraints()
Returns the constraints object, which might be null.  | 
 java.lang.String | 
getConstraintsXml()
Returns the constraints XML, possibly an empty string  | 
 ParserOptions | 
getParsingOptions()
Returns ParserOptions  | 
 java.lang.String | 
getParsingOptionsXml()
Returns parserOptions XML, possibly an empty string.  | 
 java.lang.String | 
getRequestAttribute(java.lang.Object attributeName)
Gets an individual request attribute  | 
 java.util.Map | 
getRequestAttributes()
Gets all request attributes  | 
 java.lang.String | 
getRequestIdentifier()
 | 
 java.lang.String | 
getRequestTag()
 | 
 long | 
getRequestTime()
The time of day that the request occured, in milliseconds since 1970.  | 
protected static java.lang.String | 
getSearchConstraints(java.lang.String constraints)
Returns the XML presentation of Search constraints.  | 
 boolean | 
isFiringSearchEvents()
Indicates whether search events are being fired.  | 
 boolean | 
isKeepingResponseData()
 | 
 boolean | 
isListPropertyAllowed()
Returns false by default.  | 
 boolean | 
isLoggingEnabled()
Indicates whether DB logging is enabled or disabled  | 
 boolean | 
isLoggingThisRequest()
Indicates whether this request will be logged.  | 
 atg.search.routing.command.SearchEngineCommandResponse | 
processResponse(atg.search.routing.command.SearchEngineResponse response)
returns null, because these requests use old legacy response processing  | 
 void | 
setConstraints(DocumentSetConstraint constraints)
Sets the document set constraints for the query  | 
 void | 
setFiringSearchEvents(boolean pFiringSearchEvents)
Enables or disables firing of search events.  | 
 void | 
setKeepingResponseData(boolean keepResponseData)
Pass in true to force inclusion of all data received as part of the search.  | 
 void | 
setListPropertyAllowed(boolean listPropertyAllowed)
Enables storage of multi-valued properties in the Result's properties HashMap.  | 
 void | 
setLoggingEnabled(boolean loggingEnabled)
Enables or disables DB logging  | 
 void | 
setLoggingThisRequest(boolean pLoggingThisRequest)
Controls whether this request--and only this request--will generate debug logs.  | 
 void | 
setParsingOptions(ParserOptions parsingOptions)
 | 
 void | 
setRequestAttribute(java.lang.Object attributeName,
                    java.lang.Object attributeValue)
Sets an individual request attreibute's value  | 
 void | 
setRequestAttributes(java.util.Map requestAttributes)
Replaces all request attributes  | 
 void | 
setRequestIdentifier(java.lang.String pRequestIdentifier)
Unique request identifier.  | 
 void | 
setRequestTime(long pRequestTime)
Sets the time of request in milliseconds (as in the time of day).  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface com.primus.ae.searchclient.ClientRequest | 
|---|
getRequestId | 
| Methods inherited from interface atg.search.routing.command.SearchEngineRequest | 
|---|
toXML | 
| Field Detail | 
|---|
protected java.util.Map requestAttributes
protected boolean loggingEnabled
protected DocumentSetConstraint constraints
protected ParserOptions parsingOptions
protected boolean listPropertyAllowed
protected java.lang.String mRequestIdentifier
protected long mRequestTime
protected boolean mLoggingThisRequest
| Constructor Detail | 
|---|
protected ClientRequestImpl()
protected ClientRequestImpl(java.util.Map requestAttributes,
                            DocumentSetConstraint constraints,
                            ParserOptions parserOptions,
                            boolean loggingEnabled)
requestAttributes - constraints - loggingEnabled - | Method Detail | 
|---|
public atg.search.routing.command.SearchEngineCommandResponse processResponse(atg.search.routing.command.SearchEngineResponse response)
                                                                       throws atg.search.routing.command.RoutingCommandException
processResponse in interface atg.search.routing.command.SearchEngineRequestresponse - 
atg.search.routing.command.RoutingCommandExceptionpublic void setRequestTime(long pRequestTime)
setRequestTime in interface ClientRequestpRequestTime - current time in millisecondspublic long getRequestTime()
getRequestTime in interface ClientRequestpublic void setFiringSearchEvents(boolean pFiringSearchEvents)
setLoggingEnabled(boolean).
setFiringSearchEvents in interface atg.search.routing.command.SearchEngineRequestpFiringSearchEvents - true if search events are being firedpublic boolean isFiringSearchEvents()
isLoggingEnabled()
isFiringSearchEvents in interface atg.search.routing.command.SearchEngineRequesttrue if events are being firedpublic boolean isLoggingEnabled()
ClientRequest
isLoggingEnabled in interface ClientRequesttrue if logging is enabledpublic void setLoggingEnabled(boolean loggingEnabled)
ClientRequest
setLoggingEnabled in interface ClientRequestloggingEnabled - true if logging is enabledpublic java.util.Map getRequestAttributes()
getRequestAttributes in interface atg.search.routing.command.SearchEngineRequestpublic java.lang.String getRequestAttribute(java.lang.Object attributeName)
getRequestAttribute in interface atg.search.routing.command.SearchEngineRequestattributeName - Name of attribute
public void setRequestAttributes(java.util.Map requestAttributes)
setRequestAttributes in interface atg.search.routing.command.SearchEngineRequestrequestAttributes - map of request attributes
public void setRequestAttribute(java.lang.Object attributeName,
                                java.lang.Object attributeValue)
setRequestAttribute in interface atg.search.routing.command.SearchEngineRequestattributeName - name of attributeattributeValue - value of attributepublic java.lang.String getRequestIdentifier()
getRequestIdentifier in interface ClientRequestpublic void setRequestIdentifier(java.lang.String pRequestIdentifier)
setRequestIdentifier in interface ClientRequestpRequestIdentifier - unique identifier for this requestpublic DocumentSetConstraint getConstraints()
getConstraintsXml to get
 just the XML.
getConstraints in interface ClientRequestgetConstraintsXml()public java.lang.String getConstraintsXml()
public void setConstraints(DocumentSetConstraint constraints)
ClientRequest
setConstraints in interface ClientRequestconstraints - constraintspublic ParserOptions getParsingOptions()
getParsingOptions in interface ClientRequestpublic java.lang.String getParsingOptionsXml()
public void setParsingOptions(ParserOptions parsingOptions)
setParsingOptions in interface ClientRequestparsingOptions - parsing optionsprotected static java.lang.String getSearchConstraints(java.lang.String constraints)
public void setKeepingResponseData(boolean keepResponseData)
setKeepingResponseData in interface atg.search.routing.command.SearchEngineRequestkeepResponseData - true if response data should be kept and returned in the results.public boolean isKeepingResponseData()
isKeepingResponseData in interface atg.search.routing.command.SearchEngineRequestpublic boolean isListPropertyAllowed()
isListPropertyAllowed in interface ClientRequestpublic void setListPropertyAllowed(boolean listPropertyAllowed)
setListPropertyAllowed in interface ClientRequestlistPropertyAllowed - true to enable list propertiespublic java.lang.String getRequestTag()
getRequestTag in interface atg.search.routing.command.SearchEngineRequestpublic void setLoggingThisRequest(boolean pLoggingThisRequest)
setLoggingThisRequest in interface atg.search.routing.command.SearchEngineRequestpLoggingThisRequest - pass true to enable logging for this requestpublic boolean isLoggingThisRequest()
isLoggingThisRequest in interface atg.search.routing.command.SearchEngineRequest
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||