lukaszlenart commented on code in PR #845:
URL: https://github.com/apache/struts/pull/845#discussion_r1457168662


##########
core/src/main/java/org/apache/struts2/interceptor/csp/CspInterceptor.java:
##########
@@ -99,8 +105,22 @@ private Optional<URI> buildUri(String reportUri) {
         }
     }
 
-    public void setEnforcingMode(String value) {
-        this.enforcingMode = Boolean.parseBoolean(value);
+    /**
+     * Enables enforcing mode, by default all exceptions are only reported
+     *
+     * @param enforcingMode <tt>true</tt> to enable enforcing mode, 
<tt>false</tt> to keep reporting mode.
+     */
+    public void setEnforcingMode(boolean enforcingMode) {
+        this.enforcingMode = enforcingMode;
+    }
+
+    /**
+     * Sets whether to prepend the servlet context path to the {@link 
#reportUri}.
+     *
+     * @param prependServletContext true</tt> to prepend the location with the 
servlet context path, <tt>false</tt> otherwise.

Review Comment:
   Thanks, will fix that!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to