org.apache.struts2.interceptor

## Class CoepInterceptor

- java.lang.Object
- - org.apache.struts2.interceptor.AbstractInterceptor
  - - com.opensymphony.xwork2.interceptor.AbstractInterceptor
    - - org.apache.struts2.interceptor.CoepInterceptor

- All Implemented Interfaces:
    Serializable, ConditionalInterceptor, Interceptor, PreResultListener

      public class CoepInterceptor
      extends AbstractInterceptor
      implements 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.
  See Also:
    https://web.dev/why-coop-coep/#coep, https://wicg.github.io/cross-origin-embedder-policy/, Serialized Form

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.PreResultListener

      `PreResultListener.LegacyAdapter`

    - ### Nested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.ConditionalInterceptor

      `ConditionalInterceptor.LegacyAdapter`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `CoepInterceptor()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `beforeResult(ActionInvocation invocation, String resultCode)`
    `String` | `intercept(ActionInvocation invocation)` Override to handle interception
    `void` | `setEnforcingMode(String mode)`
    `void` | `setExemptedPaths(String paths)`

    - ### Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor

      `intercept, shouldIntercept, shouldIntercept`

    - ### Methods inherited from class org.apache.struts2.interceptor.AbstractInterceptor

      `destroy, init, setDisabled`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface com.opensymphony.xwork2.interceptor.PreResultListener

      `adapt, beforeResult`

    - ### Methods inherited from interface com.opensymphony.xwork2.interceptor.ConditionalInterceptor

      `adapt`

    - ### Methods inherited from interface com.opensymphony.xwork2.interceptor.Interceptor

      `adapt`

    - ### Methods inherited from interface org.apache.struts2.interceptor.Interceptor

      `destroy, init`

- - ### Constructor Detail

    - #### CoepInterceptor

          public CoepInterceptor()

  - ### Method Detail

    - #### intercept

          public String intercept(ActionInvocation invocation)
                           throws Exception

      Description copied from class: `AbstractInterceptor`
      Override to handle interception
      Specified by:
        `intercept` in class `AbstractInterceptor`
      Throws:
        `Exception`

    - #### beforeResult

          public void beforeResult(ActionInvocation invocation,
                                   String resultCode)

    - #### setExemptedPaths

          public void setExemptedPaths(String paths)

    - #### setEnforcingMode

          public void setEnforcingMode(String mode)

Copyright © 2000–2026 Apache Software Foundation. All rights reserved.