Class AxelorAjaxRequestResolver

  • All Implemented Interfaces:
    org.pac4j.core.context.HttpConstants, org.pac4j.core.http.ajax.AjaxRequestResolver, org.pac4j.core.util.Pac4jConstants

    public class AxelorAjaxRequestResolver
    extends org.pac4j.core.http.ajax.DefaultAjaxRequestResolver
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.pac4j.core.context.HttpConstants

        org.pac4j.core.context.HttpConstants.HTTP_METHOD
    • Field Summary

      • Fields inherited from class org.pac4j.core.http.ajax.DefaultAjaxRequestResolver

        logger
      • Fields inherited from interface org.pac4j.core.context.HttpConstants

        ACCEPT_HEADER, ACCESS_CONTROL_ALLOW_CREDENTIALS_HEADER, ACCESS_CONTROL_ALLOW_HEADERS_HEADER, ACCESS_CONTROL_ALLOW_METHODS_HEADER, ACCESS_CONTROL_ALLOW_ORIGIN_HEADER, ACCESS_CONTROL_EXPOSE_HEADERS_HEADER, ACCESS_CONTROL_MAX_AGE_HEADER, AJAX_HEADER_NAME, AJAX_HEADER_VALUE, APPLICATION_FORM_ENCODED_HEADER_VALUE, APPLICATION_JSON, AUTHENTICATE_HEADER, AUTHORIZATION_HEADER, BAD_REQUEST, BASIC_HEADER_PREFIX, BEARER_HEADER_PREFIX, CONTENT_TYPE_HEADER, CREATED, DEFAULT_CONNECT_TIMEOUT, DEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT, DEFAULT_READ_TIMEOUT, DIGEST_HEADER_PREFIX, FACES_PARTIAL_AJAX_PARAMETER, FORBIDDEN, FOUND, HTML_CONTENT_TYPE, LOCATION_HEADER, NO_CONTENT, OK, SCHEME_HTTP, SCHEME_HTTPS, SEE_OTHER, TEMPORARY_REDIRECT, UNAUTHORIZED
      • Fields inherited from interface org.pac4j.core.util.Pac4jConstants

        ADD_ELEMENT, AUTHORIZERS, CENTRAL_LOGOUT, CLIENT_NAME, CLIENTS, CONFIG_FACTORY, CSRF_TOKEN, CSRF_TOKEN_EXPIRATION_DATE, DEFAULT_CLIENT, DEFAULT_CLIENT_NAME_PARAMETER, DEFAULT_FORCE_CLIENT_PARAMETER, DEFAULT_LOGOUT_URL_PATTERN_VALUE, DEFAULT_REALM_NAME, DEFAULT_URL, DEFAULT_URL_VALUE, DESTROY_SESSION, ELEMENT_SEPARATOR, IS_AJAX_REQUEST, LOCAL_LOGOUT, LOGOUT_ENDPOINT_PARAMETER, LOGOUT_URL_PATTERN, MATCHERS, OIDC_CLAIM_SESSIONID, PASSWORD, PREVIOUS_CSRF_TOKEN, RENEW_SESSION, REQUESTED_URL, SESSION_ID, TYPED_ID_SEPARATOR, URL, USER_PROFILES, USERNAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.pac4j.core.exception.http.HttpAction buildAjaxResponse​(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, org.pac4j.core.redirect.RedirectionActionBuilder redirectionActionBuilder)  
      protected Optional<String> getUrl​(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, org.pac4j.core.redirect.RedirectionActionBuilder redirectionActionBuilder)  
      boolean isAjax​(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore)  
      • Methods inherited from class org.pac4j.core.http.ajax.DefaultAjaxRequestResolver

        isAddRedirectionUrlAsHeader, setAddRedirectionUrlAsHeader
    • Constructor Detail

      • AxelorAjaxRequestResolver

        public AxelorAjaxRequestResolver()
    • Method Detail

      • isAjax

        public boolean isAjax​(org.pac4j.core.context.WebContext context,
                              org.pac4j.core.context.session.SessionStore sessionStore)
        Specified by:
        isAjax in interface org.pac4j.core.http.ajax.AjaxRequestResolver
        Overrides:
        isAjax in class org.pac4j.core.http.ajax.DefaultAjaxRequestResolver
      • buildAjaxResponse

        public org.pac4j.core.exception.http.HttpAction buildAjaxResponse​(org.pac4j.core.context.WebContext context,
                                                                          org.pac4j.core.context.session.SessionStore sessionStore,
                                                                          org.pac4j.core.redirect.RedirectionActionBuilder redirectionActionBuilder)
        Specified by:
        buildAjaxResponse in interface org.pac4j.core.http.ajax.AjaxRequestResolver
        Overrides:
        buildAjaxResponse in class org.pac4j.core.http.ajax.DefaultAjaxRequestResolver
      • getUrl

        protected Optional<String> getUrl​(org.pac4j.core.context.WebContext context,
                                          org.pac4j.core.context.session.SessionStore sessionStore,
                                          org.pac4j.core.redirect.RedirectionActionBuilder redirectionActionBuilder)