org.openi.web.controller.admin
Class ProjectDownloadController

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.support.WebContentGenerator
              extended by org.springframework.web.servlet.mvc.AbstractController
                  extended by org.openi.web.controller.admin.ProjectDownloadController
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller

public class ProjectDownloadController
extends org.springframework.web.servlet.mvc.AbstractController

Zips up the project contents and sends to the user:

  • Wraps the servlet output stream in a zip output stream.
  • Uses the current projectContext (from session) and calls zipProjectContents, sending the results directly to the servlet output stream

    See Also:
    ProjectContext.zipProjectContents(ZipOutputStream)

    Field Summary
    static java.lang.String SERVLET_PATH
               
     
    Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator
    METHOD_GET, METHOD_HEAD, METHOD_POST
     
    Constructor Summary
    ProjectDownloadController()
               
     
    Method Summary
    protected  org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
               
     
    Methods inherited from class org.springframework.web.servlet.mvc.AbstractController
    handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
     
    Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator
    applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseExpiresHeader
     
    Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
    getServletContext, getTempDir, getWebApplicationContext, isContextRequired, setServletContext
     
    Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
    getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Field Detail

    SERVLET_PATH

    public static final java.lang.String SERVLET_PATH
    See Also:
    Constant Field Values
    Constructor Detail

    ProjectDownloadController

    public ProjectDownloadController()
    Method Detail

    handleRequestInternal

    protected org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request,
                                                                                 javax.servlet.http.HttpServletResponse response)
                                                                          throws java.lang.Exception
    Specified by:
    handleRequestInternal in class org.springframework.web.servlet.mvc.AbstractController
    Throws:
    java.lang.Exception