Class AjaxRequestProcessor

  extended by jetbrains.buildServer.controllers.AjaxRequestProcessor

public class AjaxRequestProcessor
extends java.lang.Object

Request processor for handling AJAX requests. Delegates actual request processing to AjaxRequestProcessor.RequestHandler.

Nested Class Summary
static interface AjaxRequestProcessor.RequestHandler
          Actual request handler
Constructor Summary
Method Summary
 void processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AjaxRequestProcessor.RequestHandler handler)
          Should be called for each incoming AJAX request.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public AjaxRequestProcessor()
Method Detail


public void processRequest(@NotNull
                           javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response,
                           AjaxRequestProcessor.RequestHandler handler)
Should be called for each incoming AJAX request. A new XML response will be created and passed to AjaxRequestProcessor.RequestHandler. After the handler finishes XML response will be written to HTTP servlet response.
This processor also provides unified mechanism for processing some exceptions, like AccessDeniedException.

request - HTTP request
response - response
handler - request handler