All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.client.SphereRequestDecorator Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
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