Package org.pac4j.core.http.ajax
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpAction
buildAjaxResponse(WebContext context, RedirectionActionBuilder redirectionActionBuilder)
Build an AJAX reponse.boolean
isAjax(WebContext context)
Whether it is an AJAX request.
-
-
-
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 contextredirectionActionBuilder
- the builder of the redirection, is case the redirect URL calculation needs to be performed- Returns:
- the AJAX response
-
-