Package psiprobe.controllers.apps
Class AbstractNoSelfContextHandlerController
- 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.AbstractNoSelfContextHandlerController
-
- 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:
BaseReloadContextController
,BaseStartContextController
,BaseStopContextController
,ResetAppStatsController
public abstract class AbstractNoSelfContextHandlerController extends AbstractContextHandlerController
Base class preventing "destructive" actions to be executed on the Probe's context.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
logger
The Constant logger.private boolean
passQueryString
The pass query string.
-
Constructor Summary
Constructors Constructor Description AbstractNoSelfContextHandlerController()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
executeAction(String contextName)
Execute action.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
isPassQueryString()
Checks if is pass query string.void
setPassQueryString(boolean passQueryString)
Sets the pass query string.-
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
-
-
-
-
Method Detail
-
isPassQueryString
public boolean isPassQueryString()
Checks if is pass query string.- Returns:
- true, if is pass query string
-
setPassQueryString
public void setPassQueryString(boolean passQueryString)
Sets the pass query string.- Parameters:
passQueryString
- the new pass query string
-
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
-
-