Package psiprobe.controllers.apps
Class BaseGetApplicationController
- java.lang.Object
-
- org.springframework.context.support.ApplicationObjectSupport
-
- org.springframework.web.context.support.WebApplicationObjectSupport
-
- org.springframework.web.servlet.support.WebContentGenerator
-
- org.springframework.web.servlet.mvc.AbstractController
-
- psiprobe.controllers.AbstractTomcatContainerController
-
- psiprobe.controllers.AbstractContextHandlerController
-
- psiprobe.controllers.apps.BaseGetApplicationController
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.web.context.ServletContextAware
,org.springframework.web.servlet.mvc.Controller
- Direct Known Subclasses:
GetApplicationProcDetailsController
,GetApplicationRequestDetailsController
,GetApplicationRuntimeInfoController
,GetApplicationSummaryController
public class BaseGetApplicationController extends AbstractContextHandlerController
Retrieves Application model object populated with application information.
-
-
Field Summary
Fields Modifier and Type Field Description private long
collectionPeriod
The collection period.private boolean
extendedInfo
denotes whether extended application information and statistics should be collected.private StatsCollection
statsCollection
The stats collection.-
Fields inherited from class psiprobe.controllers.AbstractTomcatContainerController
logger
-
-
Constructor Summary
Constructors Constructor Description BaseGetApplicationController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCollectionPeriod()
Gets the collection period.StatsCollection
getStatsCollection()
Gets the stats collection.protected org.springframework.web.servlet.ModelAndView
handleContext(String contextName, org.apache.catalina.Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Handle context.boolean
isExtendedInfo()
Checks if is extended info.void
setCollectionPeriod(long collectionPeriod)
Sets the collection period.void
setExtendedInfo(boolean extendedInfo)
Sets the extended info.void
setStatsCollection(StatsCollection statsCollection)
Sets the stats collection.-
Methods inherited from class psiprobe.controllers.AbstractContextHandlerController
handleRequestInternal, isContextOptional
-
Methods inherited from class psiprobe.controllers.AbstractTomcatContainerController
getContainerWrapper, getViewName, setContainerWrapper, setViewName
-
Methods inherited from class org.springframework.web.servlet.mvc.AbstractController
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
-
Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator
applyCacheControl, applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, checkRequest, getAllowHeader, getCacheControl, getCacheSeconds, getSupportedMethods, getVaryByRequestHeaders, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, prepareResponse, preventCaching, setAlwaysMustRevalidate, setCacheControl, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader, setVaryByRequestHeaders
-
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
-
-
-
-
Field Detail
-
extendedInfo
private boolean extendedInfo
denotes whether extended application information and statistics should be collected.
-
statsCollection
@Inject private StatsCollection statsCollection
The stats collection.
-
collectionPeriod
private long collectionPeriod
The collection period.
-
-
Method Detail
-
isExtendedInfo
public boolean isExtendedInfo()
Checks if is extended info.- Returns:
- true, if is extended info
-
setExtendedInfo
public void setExtendedInfo(boolean extendedInfo)
Sets the extended info.- Parameters:
extendedInfo
- the new extended info
-
getStatsCollection
public StatsCollection getStatsCollection()
Gets the stats collection.- Returns:
- the stats collection
-
setStatsCollection
public void setStatsCollection(StatsCollection statsCollection)
Sets the stats collection.- Parameters:
statsCollection
- the new stats collection
-
getCollectionPeriod
public long getCollectionPeriod()
Gets the collection period.- Returns:
- the collection period
-
setCollectionPeriod
public void setCollectionPeriod(long collectionPeriod)
Sets the collection period.- Parameters:
collectionPeriod
- the new collection period
-
handleContext
protected org.springframework.web.servlet.ModelAndView handleContext(String contextName, org.apache.catalina.Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Description copied from class:AbstractContextHandlerController
Handle context.- Specified by:
handleContext
in classAbstractContextHandlerController
- Parameters:
contextName
- the context namecontext
- the contextrequest
- the requestresponse
- the response- Returns:
- the model and view
- Throws:
Exception
- the exception
-
-