|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.nucleus.TimedOperationService atg.nucleus.servlet.ServletService atg.nucleus.servlet.HttpServletService atg.servlet.DynamoServlet atg.search.cache.droplet.GetClickThroughId
public class GetClickThroughId
This droplet is used to form search click identifier based on the search result. It also puts documents into the query cache to access them faster. The identifier has form [query identifier][delimiter][document identifier]. Droplet would normally be used within a loop that iterates through the search results.
Configurable properties:
Input parameters:
Output parameters:
Open parameters:
The use of the droplet is shown in the following example:
<dsp:importbean bean="/atg/search/droplet/GetClickThroughId"/> <dsp:droplet name="GetClickThroughId"> <dsp:param name="result" value="${searchResult}"/> <dsp:oparam name="output"> <dsp:a href="/path/to/productDetail.jsp"> <dsp:param name="searchClickId" param="${searchClickId}" </dsp:a> </dsp:oparam> </dsp:droplet>
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
DEFAULT_SEARCH_CLICK_ID_PARAM_NAME
The default name for search click id parameter. |
static java.lang.String |
DEFAULT_SEARCH_RESULT_PARAM_NAME
The default name for search result parameter used to get required data. |
static ParameterName |
OUTPUT
Output parameter's name. |
Fields inherited from class atg.servlet.DynamoServlet |
---|
mAllowCleanupRequest, mParameters |
Fields inherited from class atg.nucleus.servlet.ServletService |
---|
SERVLET_INFO_KEY |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
GetClickThroughId()
|
Method Summary | |
---|---|
java.lang.String |
getSearchClickIdDelimiter()
Gets property searchClickIdDelimiter. |
java.lang.String |
getSearchClickIdParameter()
Gets property searchClickIdParameter. |
java.lang.String |
getSearchQueryCachePath()
Gets property searchQueryCachePath. |
java.lang.String |
getSearchResultParameter()
Gets property searchResultParameter. |
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Retrieves query id and document object from input parameters and caches the document for later use. |
void |
setSearchClickIdDelimiter(java.lang.String pSearchClickIdDelimiter)
Sets property searchClickIdDelimiter. |
void |
setSearchClickIdParameter(java.lang.String pSearchClickIdParameter)
Sets property searchClickIdParameter. |
void |
setSearchQueryCachePath(java.lang.String pSearchQueryCachePath)
Sets property searchQueryCachePath. |
void |
setSearchResultParameter(java.lang.String pSearchResultParameter)
Sets property searchResultParameter. |
Methods inherited from class atg.servlet.DynamoServlet |
---|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, service, service, setParameter |
Methods inherited from class atg.nucleus.servlet.ServletService |
---|
destroy, getServletConfig, getServletInfo, init, setServletInfo |
Methods inherited from class atg.nucleus.TimedOperationService |
---|
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String DEFAULT_SEARCH_RESULT_PARAM_NAME
public static final java.lang.String DEFAULT_SEARCH_CLICK_ID_PARAM_NAME
public static final ParameterName OUTPUT
Constructor Detail |
---|
public GetClickThroughId()
Method Detail |
---|
public java.lang.String getSearchResultParameter()
public void setSearchResultParameter(java.lang.String pSearchResultParameter)
pSearchResultParameter
- Name of search result parameter.public java.lang.String getSearchClickIdParameter()
public void setSearchClickIdParameter(java.lang.String pSearchClickIdParameter)
pSearchClickIdParameter
- Name of search click id parameter.public java.lang.String getSearchQueryCachePath()
public void setSearchQueryCachePath(java.lang.String pSearchQueryCachePath)
pSearchQueryCachePath
- Nucleus path to search query cache
component.public java.lang.String getSearchClickIdDelimiter()
public void setSearchClickIdDelimiter(java.lang.String pSearchClickIdDelimiter)
pSearchClickIdDelimiter
- Delimiter which is used to delimit parts
of the search click id.public void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
service
in class DynamoServlet
pRequest
- The request to be processed.pResponse
- Response object for this request.
javax.servlet.ServletException
- An application specific error
occurred processing this request.
java.io.IOException
- An error occurred reading data from the request
or writing data to the response.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |