Package psiprobe.controllers.apps
Class BaseDownloadXmlConfController
- 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.BaseDownloadXmlConfController
-
- 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:
DownloadContextXmlConfController
,DownloadWebXmlConfController
public class BaseDownloadXmlConfController extends AbstractContextHandlerController
Downloads a deployment descriptor (web.xml) or a context descriptor (context.xml) of a web application.
-
-
Field Summary
Fields Modifier and Type Field Description private String
downloadTarget
Type of a configuration file to be downloaded.private static org.slf4j.Logger
logger
The Constant logger.private static String
TARGET_CONTEXT_XML
The Constant TARGET_CONTEXT_XML.private static String
TARGET_WEB_XML
The Constant TARGET_WEB_XML.
-
Constructor Summary
Constructors Constructor Description BaseDownloadXmlConfController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDownloadTarget()
Gets the download target.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.void
setDownloadTarget(String downloadTarget)
Sets the download target.-
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
-
logger
private static final org.slf4j.Logger logger
The Constant logger.
-
TARGET_WEB_XML
private static final String TARGET_WEB_XML
The Constant TARGET_WEB_XML.- See Also:
- Constant Field Values
-
TARGET_CONTEXT_XML
private static final String TARGET_CONTEXT_XML
The Constant TARGET_CONTEXT_XML.- See Also:
- Constant Field Values
-
downloadTarget
private String downloadTarget
Type of a configuration file to be downloaded.
-
-
Method Detail
-
getDownloadTarget
public String getDownloadTarget()
Gets the download target.- Returns:
- the download target
-
setDownloadTarget
public void setDownloadTarget(String downloadTarget)
Sets the download target.- Parameters:
downloadTarget
- the new download target
-
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
-
-