Class PublishChangesController
- 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.changes.PublishChangesController
-
- 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:
PublishBinaryChangesController,PublishDiffChangesController,PublishMultipartBinaryChangesController
public abstract class PublishChangesController extends BaseController
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.controllers.BaseController
myServer
-
-
Constructor Summary
Constructors Constructor Description PublishChangesController(SBuildServer server, UserModelEx userModel, SecurityContextEx securityContext)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.springframework.web.servlet.ModelAndViewdoHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Performs actual request processingprotected abstract longpublish(long userId, String messageParam, PreTestedCommitType commitType, InputStream input)protected org.springframework.web.servlet.ModelAndViewpublishChanges(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, jetbrains.buildServer.controllers.changes.PublishChangesController.PublishChangesParameters params)-
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
-
PublishChangesController
public PublishChangesController(@NotNull SBuildServer server, @NotNull UserModelEx userModel, @NotNull SecurityContextEx securityContext)
-
-
Method Detail
-
publish
protected abstract long publish(long userId, @NotNull String messageParam, @NotNull PreTestedCommitType commitType, @NotNull InputStream input) throws IOException- Throws:
IOException
-
doHandle
@Nullable protected org.springframework.web.servlet.ModelAndView doHandle(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response) throws ExceptionDescription copied from class:BaseControllerPerforms actual request processing- Specified by:
doHandlein classBaseController- Parameters:
request- HTTP requestresponse- HTTP response- Returns:
- model and view components
- Throws:
Exception- exception
-
publishChanges
@Nullable protected org.springframework.web.servlet.ModelAndView publishChanges(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response, jetbrains.buildServer.controllers.changes.PublishChangesController.PublishChangesParameters params) throws IOException- Throws:
IOException
-
-