Interface ICrossSiteRequestManagerSPI

  • All Known Implementing Classes:
    CrossSiteRequestManager

    public interface ICrossSiteRequestManagerSPI
    Cross-site request manager.
    Since:
    10.2.0
    Version:
    $Revision: 23534 $ $Date: 2020-01-14 13:16:30 -0300 (Tue, 14 Jan 2020) $
    • Method Detail

      • isAllowed

        boolean isAllowed​(HttpServletRequest request)
                   throws PortalException
        Returns whether the given request is allowed to be performed.
        Parameters:
        request - the request.
        Returns:
        whether the given request is allowed to be performed.
        Throws:
        PortalException
        Since:
        10.2.0
      • clearCache

        void clearCache​(ITransaction transaction)
                 throws PortalException
        Clears the cache after the commit of the given transaction.
        Parameters:
        transaction - the transaction.
        Throws:
        PortalException
        Since:
        10.2.0
      • clearCORSCache

        void clearCORSCache​(ITransaction transaction)
                     throws PortalException
        Clears the CORS definitions cache after the commit of the given transaction.
        Parameters:
        transaction - the transaction.
        Throws:
        PortalException
        Since:
        12.2.0
      • findCorsRuleForActualRequest

        CorsRule findCorsRuleForActualRequest​(HttpServletRequest request)
                                       throws PortalException
        Returns the CorsRule to be applied for the given actual request.
        Parameters:
        request - the request.
        Returns:
        the CORS rule or null if no CORS rule matches the given request.
        Throws:
        PortalException
        Since:
        12.2.0
      • findCorsRuleForPreflightRequest

        CorsRule findCorsRuleForPreflightRequest​(HttpServletRequest request)
                                          throws PortalException
        Returns the CorsRule to be applied for the given preflight request.
        Parameters:
        request - the request.
        Returns:
        the CORS rule or null if no CORS rule matches the given request.
        Throws:
        PortalException
        Since:
        12.2.0