Package lumis.portal.security.csr
Interface ICrossSiteRequestManagerSPI
-
- All Known Implementing Classes:
CrossSiteRequestManager
public interface ICrossSiteRequestManagerSPI
Cross-site request manager.- Since:
- 10.2.0
- Version:
- $Revision$ $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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(javax.servlet.http.HttpServletRequest request)
Returns theCorsRule
to be applied for the given actual request.CorsRule
findCorsRuleForPreflightRequest(javax.servlet.http.HttpServletRequest request)
Returns theCorsRule
to be applied for the given preflight request.boolean
isAllowed(javax.servlet.http.HttpServletRequest request)
Returns whether the given request is allowed to be performed.
-
-
-
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 theCorsRule
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 theCorsRule
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
-
-