Class EditParametersSpecController
- 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
-
- jetbrains.buildServer.controllers.BaseController
-
- jetbrains.buildServer.controllers.BaseFormXmlController
-
- jetbrains.buildServer.controllers.parameters.EditParametersSpecController
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.web.context.ServletContextAware
,org.springframework.web.servlet.mvc.Controller
public class EditParametersSpecController extends BaseFormXmlController
- Author:
- Eugene Petrenko (eugene.petrenko@gmail.com) Date: 07.12.11 13:07
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.controllers.BaseController
myServer
-
-
Constructor Summary
Constructors Constructor Description EditParametersSpecController(WebControllerManager web, ParameterManager parameterManager, ParameterDescriptionFactory factory, ParameterContextFactory contextFactory, ProjectManager projectManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.web.servlet.ModelAndView
doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Implement this method to process GET requests.protected org.springframework.web.servlet.ModelAndView
doHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Performs actual request processingprotected void
doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.jdom.Element xmlResponse)
Implement this method to process POST requests.-
Methods inherited from class jetbrains.buildServer.controllers.BaseFormXmlController
addMessage, bindFromRequest, forgetFormBean, forgetFormBean, getOrCreateFormBean, getOrCreateFormBean, isInitPageRequest, selfRedirectOnInit, writeErrors, writeRedirect
-
Methods inherited from class jetbrains.buildServer.controllers.BaseController
getOrCreateMessages, handleRequest, handleRequestInternal, isGet, isPost, redirectTo, setExceptionResolvers, simpleView
-
Methods inherited from class org.springframework.web.servlet.mvc.AbstractController
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
-
-
-
-
Constructor Detail
-
EditParametersSpecController
public EditParametersSpecController(@NotNull WebControllerManager web, @NotNull ParameterManager parameterManager, @NotNull ParameterDescriptionFactory factory, @NotNull ParameterContextFactory contextFactory, @NotNull ProjectManager projectManager)
-
-
Method Detail
-
doHandle
@Nullable protected org.springframework.web.servlet.ModelAndView doHandle(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response) throws Exception
Description copied from class:BaseController
Performs actual request processing- Overrides:
doHandle
in classBaseFormXmlController
- Parameters:
request
- HTTP requestresponse
- HTTP response- Returns:
- model and view components
- Throws:
Exception
- exception
-
doGet
protected org.springframework.web.servlet.ModelAndView doGet(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response)
Description copied from class:BaseFormXmlController
Implement this method to process GET requests. Usually on GET request a form bean is created and a page is shown.- Specified by:
doGet
in classBaseFormXmlController
- Parameters:
request
- HTTP requestresponse
- HTTP response- Returns:
- model and view components
-
doPost
protected void doPost(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response, @NotNull org.jdom.Element xmlResponse)
Description copied from class:BaseFormXmlController
Implement this method to process POST requests. Usually POST requests are changing state of the form bean and underlying model. To output errors (if request validation failed)ActionErrors
can be used. To add messages (if request processing was successful) useBaseFormXmlController.addMessage(javax.servlet.http.HttpServletRequest, String, String, String...)
method.- Specified by:
doPost
in classBaseFormXmlController
- Parameters:
request
- HTTP requestresponse
- HTTP responsexmlResponse
- XML response for AJAX requests
-
-