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
Modifier and TypeMethodDescriptionbuildAjaxResponse
(CallContext ctx, RedirectionActionBuilder redirectionActionBuilder) Build an AJAX response.boolean
isAjax
(CallContext ctx) Whether it is an AJAX request.
-
Method Details
-
isAjax
Whether it is an AJAX request.- Parameters:
ctx
- the context- Returns:
- whether it is an AJAX request
-
buildAjaxResponse
Build an AJAX response.- Parameters:
ctx
- the contextredirectionActionBuilder
- the builder of the redirection, is case the redirect URL calculation needs to be performed- Returns:
- the AJAX response
-