Class WebClientHttpRequestAwareErrorResolver
java.lang.Object
com.broadleafcommerce.dataexchange.service.error.WebClientHttpRequestAwareErrorResolver
- Direct Known Subclasses:
WebClientBadRequestExceptionErrorResolver
,WebClientExceptionErrorResolver
Adds support for utility methods to set various request parameters on the error object. These
include the path, HTTP method (GET, POST, etc.), and headers (if enabled).
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected void
populateRequestInfoFields
(DataExchangeError error, org.springframework.web.reactive.function.client.WebClientResponseException exception) Sets the URL path and headers (if enabled and available) on the error object.protected void
setHeadersOnResponse
(DataExchangeError error, org.springframework.web.reactive.function.client.WebClientResponseException exception) Sets the request headers on the error object if enabled and available.
-
Constructor Details
-
WebClientHttpRequestAwareErrorResolver
-
-
Method Details
-
populateRequestInfoFields
protected void populateRequestInfoFields(DataExchangeError error, org.springframework.web.reactive.function.client.WebClientResponseException exception) Sets the URL path and headers (if enabled and available) on the error object.- Parameters:
error
- the error objectexception
- the exception
-
setHeadersOnResponse
protected void setHeadersOnResponse(DataExchangeError error, org.springframework.web.reactive.function.client.WebClientResponseException exception) Sets the request headers on the error object if enabled and available.- Parameters:
error
- the error objectexception
- the web client response exception- See Also:
-