WW-5400 Added @since Struts 6.5.0 to new properties as requested

This commit is contained in:
Erica S. Kane
2024-04-12 13:40:53 -04:00
parent 0151bdeb9c
commit 6ac8b04ad2
2 changed files with 12 additions and 0 deletions
@@ -122,6 +122,14 @@ public final class CspInterceptor extends AbstractInterceptor {
this.reportUri = reportUri;
}
/**
* Sets the report group where csp violation reports will be sent. This will
* only be used if the reportUri is set.
*
* @param reportTo the report group where csp violation reports will be sent
*
* @since Struts 6.5.0
*/
public void setReportTo(String reportTo) {
this.reportTo = reportTo;
}
@@ -156,6 +164,8 @@ public final class CspInterceptor extends AbstractInterceptor {
/**
* Sets the class name of the default {@link CspSettings} implementation to use when the action does not
* set its own values. If not set, the default is {@link DefaultCspSettings}.
*
* @since Struts 6.5.0
*/
public void setDefaultCspSettingsClassName(String defaultCspSettingsClassName) {
this.defaultCspSettingsClassName = defaultCspSettingsClassName;
@@ -59,6 +59,8 @@ public interface CspSettings {
/**
* Sets the report group where csp violation reports will be sent
*
* @since Struts 6.5.0
*/
void setReportTo(String group);