/** * Perform an HTTP request for the given request object emitting the full HTTP response from returned * {@link Publisher} and converting the response body to the specified type. * * @param request The {@link HttpRequest} to execute * @param <I> The request body type * @return A {@link Publisher} that emits String result */ default <I> Publisher<String> retrieve(HttpRequest<I> request) { return retrieve(request, String.class); }
@Override default Flowable<String> retrieve(String uri) { return (Flowable<String>) HttpClient.super.retrieve(uri); }
/** * Perform an HTTP request for the given request object emitting the full HTTP response from returned * {@link Publisher} and converting the response body to the specified type. * * @param request The {@link HttpRequest} to execute * @param bodyType The body type * @param <I> The request body type * @param <O> The response body type * @return A {@link Publisher} that emits a result of the given type */ default <I, O> Publisher<O> retrieve(HttpRequest<I> request, Argument<O> bodyType) { return retrieve(request, bodyType, DEFAULT_ERROR_TYPE); }
@Override default <I, O> Flowable<O> retrieve(HttpRequest<I> request, Class<O> bodyType) { return Flowable.fromPublisher(HttpClient.super.retrieve(request, bodyType)); }
/** * Perform an HTTP request for the given request object emitting the full HTTP response from returned * {@link Publisher} and converting the response body to the specified type. * * @param request The {@link HttpRequest} to execute * @param bodyType The body type * @param <I> The request body type * @param <O> The response body type * @return A {@link Publisher} that emits a result of the given type */ default <I, O> Publisher<O> retrieve(HttpRequest<I> request, Class<O> bodyType) { return retrieve(request, Argument.of(bodyType)); }
@Override default <I, O> Flowable<O> retrieve(HttpRequest<I> request, Argument<O> bodyType) { return Flowable.fromPublisher(HttpClient.super.retrieve(request, bodyType)); }
/** * Perform an HTTP GET request for the given request object emitting the full HTTP response from returned * {@link Publisher} and converting the response body to the specified type. * * @param uri The URI * @return A {@link Publisher} that emits String result */ default Publisher<String> retrieve(String uri) { return retrieve(HttpRequest.GET(uri), String.class); }
@Override default <I> Flowable<String> retrieve(HttpRequest<I> request) { return Flowable.fromPublisher(HttpClient.super.retrieve(request)); }
@Override default <I, O, E> Flowable<O> retrieve(HttpRequest<I> request, Argument<O> bodyType, Argument<E> errorType) { return Flowable.fromPublisher(HttpClient.super.retrieve(request, bodyType, errorType)); }
); } else { publisher = httpClient.retrieve( request, publisherArgument, errorType );
/** * Perform an HTTP request for the given request object emitting the full HTTP response from returned * {@link Publisher} and converting the response body to the specified type. * * @param request The {@link HttpRequest} to execute * @param <I> The request body type * @return A {@link Publisher} that emits String result */ default <I> Publisher<String> retrieve(HttpRequest<I> request) { return retrieve(request, String.class); }
/** * Perform an HTTP request for the given request object emitting the full HTTP response from returned * {@link Publisher} and converting the response body to the specified type. * * @param request The {@link HttpRequest} to execute * @param <I> The request body type * @return A {@link Publisher} that emits String result */ default <I> Publisher<String> retrieve(HttpRequest<I> request) { return retrieve(request, String.class); }
/** * Perform an HTTP request for the given request object emitting the full HTTP response from returned * {@link Publisher} and converting the response body to the specified type. * * @param request The {@link HttpRequest} to execute * @param bodyType The body type * @param <I> The request body type * @param <O> The response body type * @return A {@link Publisher} that emits a result of the given type */ default <I, O> Publisher<O> retrieve(HttpRequest<I> request, Argument<O> bodyType) { return retrieve(request, bodyType, DEFAULT_ERROR_TYPE); }
@Override default Flowable<String> retrieve(String uri) { return (Flowable<String>) HttpClient.super.retrieve(uri); }
@Override default <I, O> Flowable<O> retrieve(HttpRequest<I> request, Class<O> bodyType) { return Flowable.fromPublisher(HttpClient.super.retrieve(request, bodyType)); }
/** * Perform an HTTP GET request for the given request object emitting the full HTTP response from returned * {@link Publisher} and converting the response body to the specified type. * * @param uri The URI * @return A {@link Publisher} that emits String result */ default Publisher<String> retrieve(String uri) { return retrieve(HttpRequest.GET(uri), String.class); }
/** * Perform an HTTP GET request for the given request object emitting the full HTTP response from returned * {@link Publisher} and converting the response body to the specified type. * * @param uri The URI * @return A {@link Publisher} that emits String result */ default Publisher<String> retrieve(String uri) { return retrieve(HttpRequest.GET(uri), String.class); }
/** * Perform an HTTP request for the given request object emitting the full HTTP response from returned * {@link Publisher} and converting the response body to the specified type. * * @param request The {@link HttpRequest} to execute * @param bodyType The body type * @param <I> The request body type * @param <O> The response body type * @return A {@link Publisher} that emits a result of the given type */ default <I, O> Publisher<O> retrieve(HttpRequest<I> request, Class<O> bodyType) { return retrieve(request, Argument.of(bodyType)); }
@Override default <I> Flowable<String> retrieve(HttpRequest<I> request) { return Flowable.fromPublisher(HttpClient.super.retrieve(request)); }
@Override default <I> Flowable<String> retrieve(HttpRequest<I> request) { return Flowable.fromPublisher(HttpClient.super.retrieve(request)); }