Thin client: add spring compatible setter for "send stack trace to client" flag - Fixes
@@ -111,13 +111,25 @@ public class ThinClientConfiguration {
/**
* @param sendServerExcStackTraceToClient If {@code true} sends a server exception stack to the client side.
* @return {@code this} for chaining.
+ * @deprecated Use {@link #setServerToClientExceptionStackTraceSending(boolean)} instead.
*/
+ @Deprecated
public ThinClientConfiguration sendServerExceptionStackTraceToClient(boolean sendServerExcStackTraceToClient) {
this.sendServerExcStackTraceToClient = sendServerExcStackTraceToClient;
return this;
}
+ /**
+ * @param sendStackTrace If {@code true} sends a server exception stack to the client side.
+ * @return {@code this} for chaining.
+ */
+ public ThinClientConfiguration setServerToClientExceptionStackTraceSending(boolean sendStackTrace) {
+ sendServerExcStackTraceToClient = sendStackTrace;
+
+ return this;
+ }
+
/** {@inheritDoc} */
@Override public String toString() {
return S.toString(ThinClientConfiguration.class, this);
