io.sphere.sdk.client.CachedHttpRequestClientRequest Maven / Gradle / Ivy
package io.sphere.sdk.client;
import io.sphere.sdk.http.ClientRequest;
import io.sphere.sdk.http.HttpRequest;
import io.sphere.sdk.http.HttpResponse;
import io.sphere.sdk.models.Base;
import java.util.function.Function;
final class CachedHttpRequestClientRequest extends Base implements ClientRequest {
private final ClientRequest delegate;
private final HttpRequest httpRequest;
CachedHttpRequestClientRequest(final ClientRequest delegate) {
this.delegate = delegate;
this.httpRequest = delegate.httpRequest();
}
@Override
public Function resultMapper() {
return delegate.resultMapper();
}
@Override
public HttpRequest httpRequest() {
return httpRequest;
}
@Override
public boolean canHandleResponse(final HttpResponse response) {
return delegate.canHandleResponse(response);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy