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
(WebContext context, SessionStore sessionStore, RedirectionActionBuilder redirectionActionBuilder) Build an AJAX reponse.boolean
isAjax
(WebContext context, SessionStore sessionStore) Whether it is an AJAX request.
-
Method Details
-
isAjax
Whether it is an AJAX request.- Parameters:
context
- the web contextsessionStore
- 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 contextsessionStore
- the session storeredirectionActionBuilder
- the builder of the redirection, is case the redirect URL calculation needs to be performed- Returns:
- the AJAX response
-