jetbrains.buildServer.controllers
Class AjaxRequestProcessor

java.lang.Object
  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
AjaxRequestProcessor()
           
 
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

AjaxRequestProcessor

public AjaxRequestProcessor()
Method Detail

processRequest

public void processRequest(@NotNull
                           javax.servlet.http.HttpServletRequest request,
                           @NotNull
                           javax.servlet.http.HttpServletResponse response,
                           @NotNull
                           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.

Parameters:
request - HTTP request
response - response
handler - request handler