org.springframework.extensions.surf.mvc
Class PreviewController

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.springframework.extensions.surf.mvc.AbstractWebFrameworkController
                      extended by org.springframework.extensions.surf.mvc.PreviewController
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller

public class PreviewController
extends AbstractWebFrameworkController

Controller for managing requests for preview. This allows the previewed sandbox and webapp to be specified via a URL for the current session. It then performs a redirect to the Surf application. Incoming URLs can be of the form: /preview/{sandboxId} /preview/{sandboxId}/{webappId} /preview?alfStoreId={sandboxId} /preview?alfStoreId={sandboxId}&alfWebappId={webappId} /preview?s={sandboxId} /preview?s={sandboxId}&w={webappId}

Author:
muzquiano

Field Summary
 
Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator
METHOD_GET, METHOD_HEAD, METHOD_POST
 
Constructor Summary
PreviewController()
           
 
Method Summary
 org.springframework.web.servlet.ModelAndView createModelAndView(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Internal method to be implemented by inheriting class to create model and view for the controller.
 org.apache.commons.logging.Log getLogger()
          Returns a logger for the controller
 
Methods inherited from class org.springframework.extensions.surf.mvc.AbstractWebFrameworkController
getRenderService, getServiceRegistry, getWebFrameworkConfiguration, getWebFrameworkManager, handleRequestInternal, setServiceRegistry
 
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, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
 
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, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.web.context.ServletContextAware
setServletContext
 

Constructor Detail

PreviewController

public PreviewController()
Method Detail

getLogger

public org.apache.commons.logging.Log getLogger()
Description copied from class: AbstractWebFrameworkController
Returns a logger for the controller

Specified by:
getLogger in class AbstractWebFrameworkController
Returns:
logger

createModelAndView

public org.springframework.web.servlet.ModelAndView createModelAndView(javax.servlet.http.HttpServletRequest request,
                                                                       javax.servlet.http.HttpServletResponse response)
Description copied from class: AbstractWebFrameworkController
Internal method to be implemented by inheriting class to create model and view for the controller.

Specified by:
createModelAndView in class AbstractWebFrameworkController
Returns:
ModelAndView


Copyright © 2009 SpringSource, Inc. All Rights Reserved.