Package org.apache.struts2.interceptor
Class CoepInterceptor
java.lang.Object
org.apache.struts2.interceptor.AbstractInterceptor
org.apache.struts2.interceptor.CoepInterceptor
- All Implemented Interfaces:
- Serializable,- ConditionalInterceptor,- Interceptor,- PreResultListener
Interceptor that implements Cross-Origin Embedder Policy on incoming requests used to protect a
 document from loading any non-same-origin resources which don't explicitly grant the document
 permission to be loaded.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbeforeResult(ActionInvocation invocation, String resultCode) intercept(ActionInvocation invocation) Override to handle interceptionvoidsetEnforcingMode(String mode) voidsetExemptedPaths(String paths) Methods inherited from class org.apache.struts2.interceptor.AbstractInterceptordestroy, init, setDisabled, shouldIntercept
- 
Constructor Details- 
CoepInterceptorpublic CoepInterceptor()
 
- 
- 
Method Details- 
interceptDescription copied from class:AbstractInterceptorOverride to handle interception- Specified by:
- interceptin interface- Interceptor
- Specified by:
- interceptin class- AbstractInterceptor
- Parameters:
- invocation- the action invocation
- Returns:
- the return code, either returned from ActionInvocation.invoke(), or from the interceptor itself.
- Throws:
- Exception- any system-level error, as defined in- Action.execute().
 
- 
beforeResultDescription copied from interface:PreResultListener- Specified by:
- beforeResultin interface- PreResultListener
- Parameters:
- invocation- the action invocation
- resultCode- the result code returned by the action (eg.- success).
 
- 
setExemptedPaths
- 
setEnforcingMode
 
-