public class DefaultActionPathProvider extends GenericService
com.endeca.infront.navigaton.url.ActionPathProvider
interface.
Used to return information to the Assembler when constructing RecordAction
objects. The following sequence is used to calculate the action paths.
AssemblerTools#getContentPath()
, exists in navigationActionUriMap or
recordActionUriMap. If it exists, use the value from the map.AssemblerTools#getContentPath()
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALWAYS_USE_DEFAULT_NAVIGATION_CONTENT_PATH
The request parameter key to enforce that the default navigation action
content path is used.
|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
DefaultActionPathProvider() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
attemptMatch(java.lang.String pUri,
java.util.Map<java.lang.String,java.lang.String> pRegexps)
Iterates through the given map, treating each key/value pair as a regular
expression and a replacement string, respectively.
|
AssemblerTools |
getAssemblerTools() |
ContentSource |
getContentSource() |
DynamoHttpServletRequest |
getCurrentRequest() |
protected ContentLocator |
getDefaultContentLocator()
Try and resolve the default ContentLocator.
|
java.lang.String |
getDefaultExperienceManagerNavigationActionPath() |
java.lang.String |
getDefaultExperienceManagerRecordActionPath() |
java.lang.String |
getDefaultGuidedSearchNavigationActionPath() |
java.lang.String |
getDefaultGuidedSearchRecordActionPath() |
java.lang.String |
getDefaultNavigationActionContentPath()
Implements com.endeca.infront.navigation.url.ActionPathProviders
getDefaultNavigationActionContentPath to return the current content path.
|
java.lang.String |
getDefaultNavigationActionSiteRootPath()
Implements com.endeca.infront.navigation.url.ActionPathProviders
getDefaultNavigationActionSiteRootPath to return the current default root
path.
|
java.lang.String |
getDefaultRecordActionContentPath()
Implements com.endeca.infront.navigation.url.ActionPathProviders
getDefaultRecordActionContentPath to return the current content path.
|
java.lang.String |
getDefaultRecordActionSiteRootPath()
Implements com.endeca.infront.navigation.url.ActionPathProviders
getDefaultRecordActionSiteRootPath to return the current site root path.
|
protected java.lang.String |
getDefaultSiteRootPath()
Gets the default site root path depending on whether we are using Experience
Manager or Guided Search.
|
ContentLocator |
getNavigationActionLocator() |
java.util.Map<java.lang.String,java.lang.String> |
getNavigationActionUriMap() |
ContentLocator |
getRecordActionLocator() |
java.util.Map<java.lang.String,java.lang.String> |
getRecordActionUriMap() |
java.lang.Boolean |
isExperienceManager() |
boolean |
isTriedResolveNavigationActionLocator() |
boolean |
isTriedResolveRecordActionLocator() |
void |
setAssemblerTools(AssemblerTools pAssemblerTools) |
void |
setContentSource(ContentSource pContentSource) |
void |
setCurrentRequest(DynamoHttpServletRequest pCurrentRequest) |
void |
setDefaultExperienceManagerNavigationActionPath(java.lang.String pDefaultExperienceManagerNavigationActionPath) |
void |
setDefaultExperienceManagerRecordActionPath(java.lang.String pDefaultExperienceManagerRecordActionPath) |
void |
setDefaultGuidedSearchNavigationActionPath(java.lang.String pDefaultGuidedSearchNavigationActionPath) |
void |
setDefaultGuidedSearchRecordActionPath(java.lang.String pDefaultGuidedSearchRecordActionPath) |
void |
setNavigationActionLocator(ContentLocator pNavigationActionLocator) |
void |
setNavigationActionUriMap(java.util.Map<java.lang.String,java.lang.String> pNavigationActionUriMap) |
void |
setRecordActionLocator(ContentLocator pRecordActionLocator) |
void |
setRecordActionUriMap(java.util.Map<java.lang.String,java.lang.String> pRecordActionUriMap) |
addLogListener, createAdminServlet, doStartService, 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
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 ALWAYS_USE_DEFAULT_NAVIGATION_CONTENT_PATH
public static java.lang.String CLASS_VERSION
public java.lang.String getDefaultExperienceManagerNavigationActionPath()
public void setDefaultExperienceManagerNavigationActionPath(java.lang.String pDefaultExperienceManagerNavigationActionPath)
pDefaultExperienceManagerNavigationActionPath
- Set a new
defaultExperienceManagerNavigationActionPath.public java.lang.String getDefaultExperienceManagerRecordActionPath()
public void setDefaultExperienceManagerRecordActionPath(java.lang.String pDefaultExperienceManagerRecordActionPath)
pDefaultExperienceManagerRecordActionPath
- Set a new
defaultExperienceManagerRecordActionPath.public java.lang.String getDefaultGuidedSearchNavigationActionPath()
public void setDefaultGuidedSearchNavigationActionPath(java.lang.String pDefaultGuidedSearchNavigationActionPath)
pDefaultGuidedSearchNavigationActionPath
- Set a new
defaultGuidedSearchNavigationActionPath.public java.lang.String getDefaultGuidedSearchRecordActionPath()
public void setDefaultGuidedSearchRecordActionPath(java.lang.String pDefaultGuidedSearchRecordActionPath)
pDefaultGuidedSearchRecordActionPath
- Set a new
defaultGuidedSearchRecordActionPath.public AssemblerTools getAssemblerTools()
public void setAssemblerTools(AssemblerTools pAssemblerTools)
mAssemblerTools
- Set a new AssemblerTools.public ContentLocator getNavigationActionLocator()
public void setNavigationActionLocator(ContentLocator pNavigationActionLocator)
pNavigationActionLocator
- the navigationActionLocator to setpublic ContentLocator getRecordActionLocator()
public void setRecordActionLocator(ContentLocator pRecordActionLocator)
pRecordActionLocator
- the recordActionLocator to setpublic java.util.Map<java.lang.String,java.lang.String> getNavigationActionUriMap()
public void setNavigationActionUriMap(java.util.Map<java.lang.String,java.lang.String> pNavigationActionUriMap)
pNavigationActionUriMap
- the navigationActionUriMap to setpublic java.util.Map<java.lang.String,java.lang.String> getRecordActionUriMap()
public void setRecordActionUriMap(java.util.Map<java.lang.String,java.lang.String> pRecordActionUriMap)
pRecordActionUriMap
- the recordActionUriMap to setpublic DynamoHttpServletRequest getCurrentRequest()
public void setCurrentRequest(DynamoHttpServletRequest pCurrentRequest)
pCurrentRequest
- the currentRequest to setpublic ContentSource getContentSource()
public void setContentSource(ContentSource pContentSource)
pContentSource
- the contentSource to setpublic boolean isTriedResolveNavigationActionLocator()
public boolean isTriedResolveRecordActionLocator()
public java.lang.Boolean isExperienceManager()
public java.lang.String getDefaultNavigationActionSiteRootPath()
public java.lang.String getDefaultNavigationActionContentPath()
public java.lang.String getDefaultRecordActionSiteRootPath()
public java.lang.String getDefaultRecordActionContentPath()
protected java.lang.String getDefaultSiteRootPath()
protected java.lang.String attemptMatch(java.lang.String pUri, java.util.Map<java.lang.String,java.lang.String> pRegexps)
protected ContentLocator getDefaultContentLocator()