jetbrains.buildServer.controllers
Class BasePopupController

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 jetbrains.buildServer.controllers.BaseController
                      extended by jetbrains.buildServer.controllers.BasePopupController
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller

public abstract class BasePopupController
extends BaseController

Base class for all controllers serving AJAX popups. At the moment this controller differs from BaseController in the way how it reacts on AccessDeniedException. BaseController sends redirect, while this controller simply shows message.


Field Summary
 
Fields inherited from class jetbrains.buildServer.controllers.BaseController
myServer
 
Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator
METHOD_GET, METHOD_HEAD, METHOD_POST
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
BasePopupController()
           
BasePopupController(SBuildServer server)
           
 
Method Summary
protected  org.springframework.web.servlet.ModelAndView doHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Performs actual request processing
protected abstract  org.springframework.web.servlet.ModelAndView processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Performs actual request processing.
 
Methods inherited from class jetbrains.buildServer.controllers.BaseController
getOrCreateMessages, handleRequestInternal, isGet, isPost, simpleView
 
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
 

Constructor Detail

BasePopupController

public BasePopupController(@NotNull
                           SBuildServer server)

BasePopupController

public BasePopupController()
Method Detail

doHandle

@Nullable
protected org.springframework.web.servlet.ModelAndView doHandle(@NotNull
                                                                         javax.servlet.http.HttpServletRequest request,
                                                                         @NotNull
                                                                         javax.servlet.http.HttpServletResponse response)
                                                         throws java.lang.Exception
Description copied from class: BaseController
Performs actual request processing

Specified by:
doHandle in class BaseController
Parameters:
request - HTTP request
response - HTTP response
Returns:
model and view components
Throws:
java.lang.Exception - exception

processRequest

protected abstract org.springframework.web.servlet.ModelAndView processRequest(@NotNull
                                                                               javax.servlet.http.HttpServletRequest request,
                                                                               @NotNull
                                                                               javax.servlet.http.HttpServletResponse response)
Performs actual request processing.

Parameters:
request - HTTP request
response - HTTP response
Returns:
model and view components