public final class CorrelationIdRequestDecorator<T> extends SphereRequestDecorator<T>
delegate
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object otherRequest) |
int |
hashCode() |
HttpRequestIntent |
httpRequestIntent()
Provides an http request intent, this does not include the execution of it.
|
static <T> CorrelationIdRequestDecorator<T> |
of(SphereRequest<T> delegate,
String correlationId)
Decorates a
SphereRequest as delegate. |
canDeserialize, deserialize
public static <T> CorrelationIdRequestDecorator<T> of(@Nonnull SphereRequest<T> delegate, @Nonnull String correlationId)
SphereRequest
as delegate. The main function of decoration is in the
httpRequestIntent()
which stores the supplied correlationId
as a
header in the request with the key .T
- the type of the resource resulting from performing the request on the Composable Commerce APIs.delegate
- the delegate SphereRequest
to be decorated.correlationId
- the correlation id to store in the header of the decorated request.CorrelationIdRequestDecorator
with a SphereRequest
as delegate. The main function of
decoration is in the httpRequestIntent()
which stores the supplied
correlationId
as a header in the request with the key .public HttpRequestIntent httpRequestIntent()
SphereRequest
httpRequestIntent
in interface SphereRequest<T>
httpRequestIntent
in class SphereRequestDecorator<T>