public final class DeprecationExceptionSphereClientDecorator extends SphereClientDecorator implements SphereClient
SphereClients to throw exceptions on deprecated http calls.
If the API returns a "X-DEPRECATION-NOTICE" header field,
it does not deserialize the response object in SphereRequest.deserialize(HttpResponse) but throws a SphereDeprecationException.
| Modifier and Type | Method and Description |
|---|---|
<T> CompletionStage<T> |
execute(SphereRequest<T> sphereRequest)
Executes asynchronously a request to Composable Commerce.
|
static SphereClient |
of(SphereClient delegate) |
close, getConfigclone, finalize, getClass, notify, notifyAll, wait, wait, waitclose, getConfig, of, ofpublic <T> CompletionStage<T> execute(SphereRequest<T> sphereRequest)
SphereClientexecute in interface SphereClientexecute in class SphereClientDecoratorT - type of the result for the requestsphereRequest - request to Composable Commerce to performpublic static SphereClient of(SphereClient delegate)