Class DataExchangeErrorProperties
java.lang.Object
com.broadleafcommerce.dataexchange.service.error.DataExchangeErrorProperties
@ConfigurationProperties(prefix="broadleaf.dataexchange.error-handling")
public class DataExchangeErrorProperties
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The request headers that are allowed to be returned in the error response.The response headers that are NOT allowed to be returned in the error response.int
hashCode()
boolean
If true, the stack trace will be printed to the logs at error level.boolean
If true, attempt to return request headers in the error response.boolean
If true, attempt to return response headers in the error response.boolean
If true, the stack trace will be returned in the error response.void
setPrintStackTrace
(boolean printStackTrace) If true, the stack trace will be printed to the logs at error level.void
setRequestHeaderWhitelist
(Set<String> requestHeaderWhitelist) The request headers that are allowed to be returned in the error response.void
setResponseHeaderBlacklist
(Set<String> responseHeaderBlacklist) The response headers that are NOT allowed to be returned in the error response.void
setReturnRequestHeaders
(boolean returnRequestHeaders) If true, attempt to return request headers in the error response.void
setReturnResponseHeaders
(boolean returnResponseHeaders) If true, attempt to return response headers in the error response.void
setReturnStackTrace
(boolean returnStackTrace) If true, the stack trace will be returned in the error response.toString()
-
Constructor Details
-
DataExchangeErrorProperties
public DataExchangeErrorProperties()
-
-
Method Details
-
isReturnStackTrace
public boolean isReturnStackTrace()If true, the stack trace will be returned in the error response. This property should generally not be used in production environments. -
isPrintStackTrace
public boolean isPrintStackTrace()If true, the stack trace will be printed to the logs at error level. Note that this only controls printing the stack trace in theerror handler
. Other places may also print a stack trace, which could result in noisy logs. -
isReturnRequestHeaders
public boolean isReturnRequestHeaders()If true, attempt to return request headers in the error response. This property should generally not be used in production environments. "Authorization" headers will always be excluded. -
getRequestHeaderWhitelist
The request headers that are allowed to be returned in the error response. "Authorization" headers will always be excluded. ifreturnRequestHeaders
is true. -
isReturnResponseHeaders
public boolean isReturnResponseHeaders()If true, attempt to return response headers in the error response. This property should generally not be used in production environments. "Authorization" headers will always be excluded. -
getResponseHeaderBlacklist
The response headers that are NOT allowed to be returned in the error response. Headers named "Authorization" will always be excluded and do not need to be defined.- See Also:
-
returnResponseHeaders
-
setReturnStackTrace
public void setReturnStackTrace(boolean returnStackTrace) If true, the stack trace will be returned in the error response. This property should generally not be used in production environments. -
setPrintStackTrace
public void setPrintStackTrace(boolean printStackTrace) If true, the stack trace will be printed to the logs at error level. Note that this only controls printing the stack trace in theerror handler
. Other places may also print a stack trace, which could result in noisy logs. -
setReturnRequestHeaders
public void setReturnRequestHeaders(boolean returnRequestHeaders) If true, attempt to return request headers in the error response. This property should generally not be used in production environments. "Authorization" headers will always be excluded. -
setRequestHeaderWhitelist
The request headers that are allowed to be returned in the error response. "Authorization" headers will always be excluded. ifreturnRequestHeaders
is true. -
setReturnResponseHeaders
public void setReturnResponseHeaders(boolean returnResponseHeaders) If true, attempt to return response headers in the error response. This property should generally not be used in production environments. "Authorization" headers will always be excluded. -
setResponseHeaderBlacklist
The response headers that are NOT allowed to be returned in the error response. Headers named "Authorization" will always be excluded and do not need to be defined.- See Also:
-
returnResponseHeaders
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-