public abstract class ContextRootSwappingService extends GenericService
Modifier and Type | Class and Description |
---|---|
class |
ContextRootSwappingService.ServletContextInfo
this class stores information about a context
swapping request
include the servlet context as well as the
servlet path
|
Modifier and Type | Field and Description |
---|---|
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 |
---|
ContextRootSwappingService()
Constructs an instanceof ContextRootSwappingService
|
Modifier and Type | Method and Description |
---|---|
boolean |
canGetResource(javax.servlet.ServletContext pServletContext,
java.lang.String pPath)
Whether we can get the specified resource (equivalent to
getResource).
|
boolean |
canGetResourceAsStream(javax.servlet.ServletContext pContext,
java.lang.String pPath)
Return whether the specific path can be gotten as a stream
(pContextRoot.getResourceAsStream(pPath) != null).
|
protected java.lang.String |
findWelcomeFile(javax.servlet.ServletContext pContext,
java.lang.String pContextRoot,
java.lang.String pServletPath)
find a valid welcome file for this request
|
java.lang.String |
getDefaultWelcomeFiles()
get DefaultWelcomeFiles
|
atg.servlet.WebAppFileExistenceService |
getWebAppFileExistenceService()
Returns property WebAppFileExistenceService.
|
protected java.lang.String[] |
getWelcomeFiles(java.lang.String pContextRoot)
find the welcome file list for the given context root, also
tack on default welcome files if there are any configured
|
void |
setDefaultWelcomeFiles(java.lang.String pDefaultWelcomeFiles)
set DefaultWelcomeFiles
|
void |
setWebAppFileExistenceService(atg.servlet.WebAppFileExistenceService pWebAppFileExistenceService)
Sets property WebAppFileExistenceService.
|
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 ContextRootSwappingService()
public void setDefaultWelcomeFiles(java.lang.String pDefaultWelcomeFiles)
pDefaultWelcomeFiles
- the DefaultWelcomeFilespublic java.lang.String getDefaultWelcomeFiles()
public void setWebAppFileExistenceService(atg.servlet.WebAppFileExistenceService pWebAppFileExistenceService)
public atg.servlet.WebAppFileExistenceService getWebAppFileExistenceService()
protected java.lang.String findWelcomeFile(javax.servlet.ServletContext pContext, java.lang.String pContextRoot, java.lang.String pServletPath)
pContext
- the context to use to test for existence of
a welcome filepContextRoot
- the context root string we are searching underpServletPath
- the servlet path for the requestprotected java.lang.String[] getWelcomeFiles(java.lang.String pContextRoot)
pContextRoot
- the context rootpublic boolean canGetResource(javax.servlet.ServletContext pServletContext, java.lang.String pPath)
pServletContext
- the servlet context to invoke
getResourceAsStream() upon.pPath
- the path of the resource to check.public boolean canGetResourceAsStream(javax.servlet.ServletContext pContext, java.lang.String pPath)
pContext
- the servlet context to invoke getResourceAsStream() upon.pPath
- the path of the resource to check.