Interface AjaxRequestResolver

All Known Implementing Classes:
DefaultAjaxRequestResolver

public interface AjaxRequestResolver
Compute if a HTTP request is an AJAX one and the appropriate response.
Since:
1.8.0
Author:
Jerome Leleu
  • Method Details

    • isAjax

      boolean isAjax(WebContext context, SessionStore sessionStore)
      Whether it is an AJAX request.
      Parameters:
      context - the web context
      sessionStore - the session store
      Returns:
      whether it is an AJAX request
    • buildAjaxResponse

      HttpAction buildAjaxResponse(WebContext context, SessionStore sessionStore, RedirectionActionBuilder redirectionActionBuilder)
      Build an AJAX reponse.
      Parameters:
      context - the web context
      sessionStore - the session store
      redirectionActionBuilder - the builder of the redirection, is case the redirect URL calculation needs to be performed
      Returns:
      the AJAX response