Package org.apache.struts2.interceptor
package org.apache.struts2.interceptor
-
ClassDescriptionInterceptor that is based off of
MultiPartRequestWrapper
, which is automatically applied for any request that includes a file when the support for multi-part request is enabled, see Disabling file upload.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.Action can create cookies which will be stored in responseAllows actions to send cookies to client, action must implementCookieProvider
You must reference this interceptor in your default stack or in action's stack, see example below.Deprecated.Interceptor that implements Cross-Origin Opener Policy on incoming requests.Interceptor that implements Fetch Metadata policy on incoming requests used to protect against CSRF, XSSI, and cross-origin information leaks.Deprecated.since Struts 6.4.0, useActionFileUploadInterceptor
insteadAn interceptor that handles setting the locale specified in a session as the locale for the current action request.Uses to handle reading/storing Locale from/in different locationsThis listener is used byMessageStoreInterceptor
to store messages in HttpSession just before result will be executed.Just as the CheckboxInterceptor checks that if only the hidden field is present, so too does this interceptor.Interceptor that does nothing, used in the "empty" stackProxy interface used together with PrincipalAware interface.Interface for the resource isolation policies to be used for fetch metadata checks.Default resource isolation policy used inFetchMetadataInterceptor
that implements theResourceIsolationPolicy
interface.
CookiesAware
instead