Class VertxClientHttpEngine
java.lang.Object
dev.resteasy.vertx.client.VertxClientHttpEngine
- All Implemented Interfaces:
org.jboss.resteasy.client.jaxrs.ClientHttpEngine, org.jboss.resteasy.client.jaxrs.engines.AsyncClientHttpEngine
public class VertxClientHttpEngine
extends Object
implements org.jboss.resteasy.client.jaxrs.engines.AsyncClientHttpEngine
A RESTEasy HTTP client engine implementation backed by Vert.x HTTP client.
This engine provides asynchronous HTTP request execution using Vert.x's event-driven architecture. Request bodies are streamed using chunked transfer encoding when no explicit Content-Length is provided, preventing excessive memory consumption for large payloads.
The engine can be configured with a custom Vertx instance, HttpClientOptions,
and ClientBuilderConfiguration. If no Vertx instance is provided, a default one will be created
and managed by this engine.
- Author:
- James R. Perkins
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.resteasy.client.jaxrs.engines.AsyncClientHttpEngine
org.jboss.resteasy.client.jaxrs.engines.AsyncClientHttpEngine.ResultExtractor<T> -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new engine.VertxClientHttpEngine(io.vertx.core.http.HttpClientOptions options) Creates a new engine with the specified HTTP client options.VertxClientHttpEngine(io.vertx.core.http.HttpClientOptions options, org.jboss.resteasy.client.jaxrs.api.ClientBuilderConfiguration configuration) Creates a new engine with the specified HTTP client options and configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()jakarta.ws.rs.core.Responseinvoke(jakarta.ws.rs.client.Invocation request) <T> Future<T> submit(org.jboss.resteasy.client.jaxrs.internal.ClientInvocation request, boolean buffered, jakarta.ws.rs.client.InvocationCallback<T> callback, org.jboss.resteasy.client.jaxrs.engines.AsyncClientHttpEngine.ResultExtractor<T> extractor) <T> CompletableFuture<T> submit(org.jboss.resteasy.client.jaxrs.internal.ClientInvocation request, boolean buffered, org.jboss.resteasy.client.jaxrs.engines.AsyncClientHttpEngine.ResultExtractor<T> extractor, ExecutorService executorService) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.resteasy.client.jaxrs.engines.AsyncClientHttpEngine
submitMethods inherited from interface org.jboss.resteasy.client.jaxrs.ClientHttpEngine
isFollowRedirects, setFollowRedirects
-
Constructor Details
-
VertxClientHttpEngine
public VertxClientHttpEngine()Creates a new engine. -
VertxClientHttpEngine
public VertxClientHttpEngine(io.vertx.core.http.HttpClientOptions options) Creates a new engine with the specified HTTP client options.- Parameters:
options- the HTTP client options
-
VertxClientHttpEngine
public VertxClientHttpEngine(io.vertx.core.http.HttpClientOptions options, org.jboss.resteasy.client.jaxrs.api.ClientBuilderConfiguration configuration) Creates a new engine with the specified HTTP client options and configuration.- Parameters:
options- the HTTP client optionsconfiguration- the client builder configuration, may benull
-
-
Method Details
-
submit
public <T> Future<T> submit(org.jboss.resteasy.client.jaxrs.internal.ClientInvocation request, boolean buffered, jakarta.ws.rs.client.InvocationCallback<T> callback, org.jboss.resteasy.client.jaxrs.engines.AsyncClientHttpEngine.ResultExtractor<T> extractor) - Specified by:
submitin interfaceorg.jboss.resteasy.client.jaxrs.engines.AsyncClientHttpEngine
-
submit
public <T> CompletableFuture<T> submit(org.jboss.resteasy.client.jaxrs.internal.ClientInvocation request, boolean buffered, org.jboss.resteasy.client.jaxrs.engines.AsyncClientHttpEngine.ResultExtractor<T> extractor, ExecutorService executorService) - Specified by:
submitin interfaceorg.jboss.resteasy.client.jaxrs.engines.AsyncClientHttpEngine
-
getSslContext
- Specified by:
getSslContextin interfaceorg.jboss.resteasy.client.jaxrs.ClientHttpEngine
-
getHostnameVerifier
- Specified by:
getHostnameVerifierin interfaceorg.jboss.resteasy.client.jaxrs.ClientHttpEngine
-
invoke
public jakarta.ws.rs.core.Response invoke(jakarta.ws.rs.client.Invocation request) - Specified by:
invokein interfaceorg.jboss.resteasy.client.jaxrs.ClientHttpEngine
-
close
public void close()- Specified by:
closein interfaceorg.jboss.resteasy.client.jaxrs.ClientHttpEngine
-