public class CrossSiteRequestManager extends Object implements ICrossSiteRequestManagerSPI
Constructor and Description |
---|
CrossSiteRequestManager() |
Modifier and Type | Method and Description |
---|---|
void |
clearCache(ITransaction transaction)
Clears the cache after the commit of the given transaction.
|
void |
clearCORSCache(ITransaction transaction)
Clears the CORS definitions cache after the commit of the given transaction.
|
CorsRule |
findCorsRuleForActualRequest(HttpServletRequest request)
Returns the
CorsRule to be applied for the given actual request. |
CorsRule |
findCorsRuleForPreflightRequest(HttpServletRequest request)
Returns the
CorsRule to be applied for the given preflight request. |
boolean |
isAllowed(HttpServletRequest request)
Returns whether the given request is allowed to be performed.
|
public boolean isAllowed(HttpServletRequest request) throws PortalException
ICrossSiteRequestManagerSPI
isAllowed
in interface ICrossSiteRequestManagerSPI
request
- the request.PortalException
public void clearCache(ITransaction transaction) throws PortalException
ICrossSiteRequestManagerSPI
clearCache
in interface ICrossSiteRequestManagerSPI
transaction
- the transaction.PortalException
public void clearCORSCache(ITransaction transaction) throws PortalException
ICrossSiteRequestManagerSPI
clearCORSCache
in interface ICrossSiteRequestManagerSPI
transaction
- the transaction.PortalException
public CorsRule findCorsRuleForPreflightRequest(HttpServletRequest request) throws PortalException
ICrossSiteRequestManagerSPI
CorsRule
to be applied for the given preflight request.findCorsRuleForPreflightRequest
in interface ICrossSiteRequestManagerSPI
request
- the request.null
if no CORS rule matches the given request.PortalException
public CorsRule findCorsRuleForActualRequest(HttpServletRequest request) throws PortalException
ICrossSiteRequestManagerSPI
CorsRule
to be applied for the given actual request.findCorsRuleForActualRequest
in interface ICrossSiteRequestManagerSPI
request
- the request.null
if no CORS rule matches the given request.PortalException
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.