Class ExternalRequest
java.lang.Object
com.broadleafcommerce.common.extension.intercommunication.ExternalRequest
Deprecated, for removal: This API element is subject to removal in a future version.
Store details regarding an interlink call to another microservice. Generally, this information is
consumed by an instance of
ExternalClient.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Consumer<org.springframework.http.HttpHeaders>Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getUri()Deprecated, for removal: This API element is subject to removal in a future version.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.voidsetAttributes(Consumer<Map<String, Object>> attributes) Deprecated, for removal: This API element is subject to removal in a future version.voidsetFallback(Function<?, ?> fallback) Deprecated, for removal: This API element is subject to removal in a future version.voidsetHeaders(Consumer<org.springframework.http.HttpHeaders> headers) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidsetPayloads(List<Object> payloads) Deprecated, for removal: This API element is subject to removal in a future version.voidsetPrincipal(String principal) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.toString()Deprecated, for removal: This API element is subject to removal in a future version.withAttributes(Consumer<Map<String, Object>> attributes) Deprecated, for removal: This API element is subject to removal in a future version.Consumer for request attributes to apply during the request.<E extends Throwable,T>
ExternalRequestwithFallback(Function<E, reactor.core.publisher.Mono<T>> fallback) Deprecated, for removal: This API element is subject to removal in a future version.Provides a function to provide a fallback response in case of error duringWebClientcall.withHeaders(Consumer<org.springframework.http.HttpHeaders> headers) Deprecated, for removal: This API element is subject to removal in a future version.Consumer for headers to apply during the request.withLocale(Locale locale) Deprecated, for removal: This API element is subject to removal in a future version.The locale that should be associated with the call.withPayloads(List<Object> payloads) Deprecated, for removal: This API element is subject to removal in a future version.One or more payload objects that may either be used as direct method call params, or serialized as JSON in request body posts.withPrincipal(String principal) Deprecated, for removal: This API element is subject to removal in a future version.The authentication principal name that should be associated with the call.Deprecated, for removal: This API element is subject to removal in a future version.The uri used for WebClient connection.
-
Constructor Details
-
ExternalRequest
public ExternalRequest()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
withUri
Deprecated, for removal: This API element is subject to removal in a future version.The uri used for WebClient connection. This information is also used internally inExternalClientfor determination ofContextInfo, among others.- Parameters:
uri- The uri used for WebClient connection- Returns:
- This
-
withAttributes
Deprecated, for removal: This API element is subject to removal in a future version.Consumer for request attributes to apply during the request. Generally used during WebClient network requests, but may be also interpreted for other purposes in theExternalClient.- Parameters:
attributes- Consumer for request attributes to apply during the request- Returns:
- This
-
withHeaders
Deprecated, for removal: This API element is subject to removal in a future version.Consumer for headers to apply during the request. Generally used during WebClient network requests, but may be also interpreted for other purposes in theExternalClient.- Parameters:
headers- Consumer for headers to apply during the request.- Returns:
- This
-
withPayloads
Deprecated, for removal: This API element is subject to removal in a future version.One or more payload objects that may either be used as direct method call params, or serialized as JSON in request body posts.- Parameters:
payloads- The main object params to pass for the call- Returns:
- This
-
withPrincipal
Deprecated, for removal: This API element is subject to removal in a future version.The authentication principal name that should be associated with the call. This is generally used for construction ofContextInfoinstances during direct method calls in theExternalClient.- Parameters:
principal- The principal name to use- Returns:
- This
-
withLocale
Deprecated, for removal: This API element is subject to removal in a future version.The locale that should be associated with the call. This is generally used for construction ofContextInfoinstances during direct method calls in theExternalClient.- Parameters:
locale- The locale to use- Returns:
- This
-
withFallback
public <E extends Throwable,T> ExternalRequest withFallback(Function<E, reactor.core.publisher.Mono<T>> fallback) Deprecated, for removal: This API element is subject to removal in a future version.Provides a function to provide a fallback response in case of error duringWebClientcall. This is passed toMono#onErrorResume(Class, Function)during WebClient connection construction.- Type Parameters:
E- The exception encountered during WebClient processingT- The type of the fallback response- Parameters:
fallback- The function providing a fallback response- Returns:
- This
-
getFallback
Deprecated, for removal: This API element is subject to removal in a future version. -
getUri
Deprecated, for removal: This API element is subject to removal in a future version. -
getAttributes
Deprecated, for removal: This API element is subject to removal in a future version. -
getHeaders
Deprecated, for removal: This API element is subject to removal in a future version. -
getPayloads
Deprecated, for removal: This API element is subject to removal in a future version. -
getPrincipal
Deprecated, for removal: This API element is subject to removal in a future version. -
getLocale
Deprecated, for removal: This API element is subject to removal in a future version. -
setUri
Deprecated, for removal: This API element is subject to removal in a future version. -
setAttributes
Deprecated, for removal: This API element is subject to removal in a future version. -
setHeaders
Deprecated, for removal: This API element is subject to removal in a future version. -
setPayloads
Deprecated, for removal: This API element is subject to removal in a future version. -
setPrincipal
Deprecated, for removal: This API element is subject to removal in a future version. -
setLocale
Deprecated, for removal: This API element is subject to removal in a future version. -
setFallback
Deprecated, for removal: This API element is subject to removal in a future version. -
equals
Deprecated, for removal: This API element is subject to removal in a future version. -
canEqual
Deprecated, for removal: This API element is subject to removal in a future version. -
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version.
-
com.broadleafcommerce.data.tracking.core.interlink.DefaultInterlinkClientinstead.