io.sphere.sdk.client.SphereRequestDecorator Maven / Gradle / Ivy
package io.sphere.sdk.client;
import io.sphere.sdk.http.HttpResponse;
import io.sphere.sdk.models.Base;
public abstract class SphereRequestDecorator extends Base implements SphereRequest {
private final SphereRequest delegate;
protected SphereRequestDecorator(final SphereRequest delegate) {
this.delegate = delegate;
}
@Override
public boolean canDeserialize(final HttpResponse httpResponse) {
return delegate.canDeserialize(httpResponse);
}
@Override
public HttpRequestIntent httpRequestIntent() {
return delegate.httpRequestIntent();
}
@Override
public T deserialize(final HttpResponse httpResponse) {
return delegate.deserialize(httpResponse);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy