Interface ICrossSiteRequestManagerSPI

  • All Known Implementing Classes:
    CrossSiteRequestManager

    public interface ICrossSiteRequestManagerSPI
    Cross-site request manager.
    Since:
    10.2.0
    Version:
    $Revision$ $Date$
    • Method Detail

      • isAllowed

        boolean isAllowed​(javax.servlet.http.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​(javax.servlet.http.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​(javax.servlet.http.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