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 Detail

      • isAjax

        boolean isAjax​(WebContext context)
        Whether it is an AJAX request.
        Parameters:
        context - the web context
        Returns:
        whether it is an AJAX request
      • buildAjaxResponse

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