Class JettyClientEngine
java.lang.Object
org.jboss.resteasy.client.jaxrs.engines.jetty.JettyClientEngine
- All Implemented Interfaces:
ClientHttpEngine
,AsyncClientHttpEngine
@Deprecated(forRemoval=true,
since="6.2")
public class JettyClientEngine
extends Object
implements AsyncClientHttpEngine
Deprecated, for removal: This API element is subject to removal in a future version.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.resteasy.client.jaxrs.engines.AsyncClientHttpEngine
AsyncClientHttpEngine.ResultExtractor<T>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorDescriptionJettyClientEngine
(org.eclipse.jetty.client.HttpClient client) Deprecated, for removal: This API element is subject to removal in a future version.JettyClientEngine
(org.eclipse.jetty.client.HttpClient client, long idleTimeout, long readTimeout) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Needed for Client.getHostnameVerifier()Deprecated, for removal: This API element is subject to removal in a future version.Needed for Client.getSslContext();invoke
(jakarta.ws.rs.client.Invocation invocation) Deprecated, for removal: This API element is subject to removal in a future version.<T> Future
<T> submit
(ClientInvocation invocation, boolean bufIn, jakarta.ws.rs.client.InvocationCallback<T> callback, AsyncClientHttpEngine.ResultExtractor<T> extractor) Deprecated, for removal: This API element is subject to removal in a future version.Submits an asynchronous request.<T> CompletableFuture
<T> submit
(ClientInvocation request, boolean buffered, AsyncClientHttpEngine.ResultExtractor<T> extractor, ExecutorService executorService) Deprecated, for removal: This API element is subject to removal in a future version.Submits an asynchronous request.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.resteasy.client.jaxrs.engines.AsyncClientHttpEngine
submit
Methods inherited from interface org.jboss.resteasy.client.jaxrs.ClientHttpEngine
isFollowRedirects, setFollowRedirects
-
Field Details
-
REQUEST_TIMEOUT_MS
Deprecated, for removal: This API element is subject to removal in a future version. -
IDLE_TIMEOUT_MS
Deprecated, for removal: This API element is subject to removal in a future version. -
FOLLOW_REDIRECTS
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
JettyClientEngine
public JettyClientEngine(org.eclipse.jetty.client.HttpClient client) Deprecated, for removal: This API element is subject to removal in a future version. -
JettyClientEngine
public JettyClientEngine(org.eclipse.jetty.client.HttpClient client, long idleTimeout, long readTimeout) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getSslContext
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ClientHttpEngine
Needed for Client.getSslContext();- Specified by:
getSslContext
in interfaceClientHttpEngine
- Returns:
SSLContext
-
getHostnameVerifier
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ClientHttpEngine
Needed for Client.getHostnameVerifier()- Specified by:
getHostnameVerifier
in interfaceClientHttpEngine
- Returns:
HostnameVerifier
-
invoke
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
invoke
in interfaceClientHttpEngine
-
submit
public <T> Future<T> submit(ClientInvocation invocation, boolean bufIn, jakarta.ws.rs.client.InvocationCallback<T> callback, AsyncClientHttpEngine.ResultExtractor<T> extractor) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AsyncClientHttpEngine
Submits an asynchronous request.- Specified by:
submit
in interfaceAsyncClientHttpEngine
- Type Parameters:
T
- type- Parameters:
invocation
- RequestbufIn
- buffer the response?callback
- Optional callback receiving the result, which is run inside the io-thread. may be null.extractor
- ResultExtractor for extracting a result out of a ClientResponse. Is run inside the io-thread- Returns:
- Future with the result or Exception
-
submit
public <T> CompletableFuture<T> submit(ClientInvocation request, boolean buffered, AsyncClientHttpEngine.ResultExtractor<T> extractor, ExecutorService executorService) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AsyncClientHttpEngine
Submits an asynchronous request.- Specified by:
submit
in interfaceAsyncClientHttpEngine
- Type Parameters:
T
- type- Parameters:
request
- Requestbuffered
- buffer the response?extractor
- ResultExtractor for extracting a result out of a ClientResponse. Is run inside the io-threadexecutorService
- the executor to use for asynchronous execution- Returns:
CompletableFuture
with the result or Exception
-
close
public void close()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
close
in interfaceClientHttpEngine
-