public class KnowledgeBaseFindPageUrlProcessor
extends atg.adc.pipeline.PatternMappingProcessor
ADCRequestData
object for the use in the remaining pipeline processors.
The processor extends atg.adc.pipeline.PatternMappingProcessor
to perform a lookup for the URL parameter value for the configured
set of pages. If the URL of the requested page matches an entry in the
configured widgetDisplayPages
property, it is set to the ADC request
data.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
protected static java.lang.String |
ERROR_PERF_MONITOR
Performance Monitor Error.
|
static java.lang.String |
PERFORM_OPERATION_NAME |
STOP_CHAIN_EXECUTION, STOP_CHAIN_EXECUTION_AND_COMMIT, STOP_CHAIN_EXECUTION_AND_ROLLBACK
Constructor and Description |
---|
KnowledgeBaseFindPageUrlProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
doStartService()
Initializes
searchResultsPagePatterns property with
compiled page patterns corresponding to widgetDisplayPages
list. |
protected java.lang.String |
findPageUrl(atg.adc.pipeline.ADCPipelineArgs pArgs)
Finds the Page URL in the query arguments in the request.
|
atg.core.util.PagePattern[] |
getWidgetDisplayPagePatterns()
Gets widget display page patterns
|
java.lang.String[] |
getWidgetDisplayPages()
Get search results pages
|
atg.service.cache.Cache |
getWidgetDisplayPagesCache()
Gets the widget display pages cache
|
boolean |
pathMatchesPattern(java.lang.String pPath,
atg.core.util.PagePattern[] pPatterns,
atg.service.cache.Cache pCache)
This method determines if the given path matches any of the
page patterns defined.
|
void |
setWidgetDisplayPagePatterns(atg.core.util.PagePattern[] pWidgetDisplayPagePatterns)
Sets widget display page patterns
|
void |
setWidgetDisplayPages(java.lang.String[] pWidgetDisplayPages)
Set widget display pages
|
void |
setWidgetDisplayPagesCache(atg.service.cache.Cache pWidgetDisplayPagesCache)
Sets the widget display pages cache
|
int |
updateADCData(atg.adc.pipeline.ADCPipelineArgs pArgs)
Checks if the current URL matches one of the
widgetDisplayPages
configured and if a matching url is found then it is set to the ADCRequestData. |
createPatternMappings, findMappingForPath
getRetCodes, isEnabled, runProcess, setEnabled
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static final java.lang.String CLASS_VERSION
public static final java.lang.String PERFORM_OPERATION_NAME
protected static final java.lang.String ERROR_PERF_MONITOR
public java.lang.String[] getWidgetDisplayPages()
public void setWidgetDisplayPages(java.lang.String[] pWidgetDisplayPages)
pWidgetDisplayPages
- the array of search results pagespublic atg.service.cache.Cache getWidgetDisplayPagesCache()
public void setWidgetDisplayPagesCache(atg.service.cache.Cache pWidgetDisplayPagesCache)
pWidgetDisplayPagesCache
- the widget display pages cachepublic atg.core.util.PagePattern[] getWidgetDisplayPagePatterns()
public void setWidgetDisplayPagePatterns(atg.core.util.PagePattern[] pWidgetDisplayPagePatterns)
pWidgetDisplayPagePatterns
- the widget display page patternspublic void doStartService() throws atg.nucleus.ServiceException
searchResultsPagePatterns
property with
compiled page patterns corresponding to widgetDisplayPages
list.doStartService
in class atg.nucleus.GenericService
atg.nucleus.ServiceException
- if the Service had a problem starting uppublic int updateADCData(atg.adc.pipeline.ADCPipelineArgs pArgs)
widgetDisplayPages
configured and if a matching url is found then it is set to the ADCRequestData.updateADCData
in class atg.adc.pipeline.ADCPipelineProcessor
pArgs
- The pipeline argumentsprotected java.lang.String findPageUrl(atg.adc.pipeline.ADCPipelineArgs pArgs)
widgetDisplayPages
,
each argument name in pArgs
is checked for
a matching page url.pArgs
- The pipeline argumentspublic boolean pathMatchesPattern(java.lang.String pPath, atg.core.util.PagePattern[] pPatterns, atg.service.cache.Cache pCache) throws java.lang.Exception
pPath
- The url to search forpPatterns
- The url patternspCache
- Cached results of previous pathsjava.lang.Exception