Class 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.
      • Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator

        HEADER_CACHE_CONTROL, METHOD_GET, METHOD_HEAD, METHOD_POST
    • 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 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
      • Methods inherited from class org.springframework.context.support.ApplicationObjectSupport

        getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
        The Constant logger.
      • downloadTarget

        private String downloadTarget
        Type of a configuration file to be downloaded.
    • Constructor Detail

      • BaseDownloadXmlConfController

        public BaseDownloadXmlConfController()
    • 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 class AbstractContextHandlerController
        Parameters:
        contextName - the context name
        context - the context
        request - the request
        response - the response
        Returns:
        the model and view
        Throws:
        Exception - the exception