|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.nucleus.GenericReference
atg.endeca.assembler.navigation.AbstractMdexResourceResolver
public abstract class AbstractMdexResourceResolver
An abstract class for resolving difffernt MdexResource components based upon context. It does this by append a suffix (returned by getMdexResourcePathSuffix()) to a base Nucleus path (specified by the ).
Created: May 24 2012
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string from source code control system. |
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 | |
---|---|
AbstractMdexResourceResolver()
|
Method Summary | |
---|---|
protected boolean |
canResolveName()
Always say we can. |
protected void |
checkComponentPath()
Check whether component path is is set. |
java.lang.String |
getDefaultMdexResourcePath()
Returns property defaultMdexResourcePath. |
MdexResource |
getMdexResource()
Return the specified MdexResource. |
java.lang.String |
getMdexResourceBasePath()
Returns property mdexResourceBasePath. |
abstract java.lang.String |
getMdexResourcePathSuffix(DynamoHttpServletRequest pRequest)
Get the current suffix as a string. |
boolean |
getUseRequestNameResolver()
Returns property useRequestNameResolver |
protected MdexResource |
resolveMdexResource(DynamoHttpServletRequest pRequest,
java.lang.String pNucleusPath)
Utility method for resolving a nucleus path to an MDEX resource, with logging. |
protected java.lang.Object |
resolveName()
Resolves the configured component path. |
void |
setComponentPath(java.lang.String pComponentPath)
Sets property ComponentPath |
void |
setDefaultMdexResourcePath(java.lang.String pDefaultMdexResourcePath)
Sets property defaultMdexResourcePath. |
void |
setMdexResourceBasePath(java.lang.String pMdexResourceBasePath)
Sets property mdexResourceBasePath. |
void |
setUseRequestNameResolver(boolean pUseRequestNameResolver)
Sets property useRequestNameResolver |
Methods inherited from class atg.nucleus.GenericReference |
---|
doStartService, getComponentPath, getReference, getResolveCount, incrementResolveCount, isLoggingInfoResolutions, resolveComponent, setLoggingInfoResolutions |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, 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 final java.lang.String CLASS_VERSION
Constructor Detail |
---|
public AbstractMdexResourceResolver()
Method Detail |
---|
public void setUseRequestNameResolver(boolean pUseRequestNameResolver)
setUseRequestNameResolver
in class GenericReference
public boolean getUseRequestNameResolver()
getUseRequestNameResolver
in class GenericReference
public void setComponentPath(java.lang.String pComponentPath)
GenericReference
setComponentPath
in class GenericReference
public void setMdexResourceBasePath(java.lang.String pMdexResourceBasePath)
public java.lang.String getMdexResourceBasePath()
public void setDefaultMdexResourcePath(java.lang.String pDefaultMdexResourcePath)
public java.lang.String getDefaultMdexResourcePath()
public abstract java.lang.String getMdexResourcePathSuffix(DynamoHttpServletRequest pRequest)
pRequest
- the current request. May be null.protected MdexResource resolveMdexResource(DynamoHttpServletRequest pRequest, java.lang.String pNucleusPath)
pRequest
- the current request.pNucleusPath
- the path to an mdex to resolve.public MdexResource getMdexResource()
protected java.lang.Object resolveName()
useRequestNameResolver
is true
, the path is resolved for the current request. Otherwise,
the path is assumed to refer to a globally scoped component.
resolveName
in class GenericReference
protected boolean canResolveName()
canResolveName
in class GenericReference
protected void checkComponentPath() throws ServiceException
GenericReference
checkComponentPath
in class GenericReference
ServiceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |