package ru.yandex.webmaster3.core.nanny;

import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpUriRequest;
import org.springframework.web.util.UriComponentsBuilder;

import java.io.IOException;

/**
 * @author avhaliullin
 */
public abstract class NannyQuery<ResultType> {
    protected abstract HttpUriRequest makeRequest(UriComponentsBuilder uriBuilder);

    protected abstract ResultType parseResult(CloseableHttpResponse response) throws IOException;
}
