T
- the generic typepublic interface ServiceCall<T>
Modifier and Type | Method and Description |
---|---|
ServiceCall<T> |
addHeader(java.lang.String name,
java.lang.String value)
Add a header to the request before executing.
|
void |
enqueue(ServiceCallback<? super T> callback)
Asynchronous requests, in this case, you receive a callback when the data has been received.
|
void |
enqueueWithDetails(ServiceCallbackWithDetails<T> callback)
Asynchronous requests with added HTTP information.
|
T |
execute()
Synchronous request.
|
Response<T> |
executeWithDetails()
Synchronous request with added HTTP information.
|
jersey.repackaged.jsr166e.CompletableFuture<T> |
rx()
Reactive requests, in this case, you could take advantage both synchronous and asynchronous.
|
jersey.repackaged.jsr166e.CompletableFuture<Response<T>> |
rxWithDetails()
Reactive requests with added HTTP information.
|
ServiceCall<T> addHeader(java.lang.String name, java.lang.String value)
name
- the name of the headervalue
- the value of the headerT execute() throws java.lang.RuntimeException
java.lang.RuntimeException
- the exception from HTTP requestResponse<T> executeWithDetails() throws java.lang.RuntimeException
java.lang.RuntimeException
- the exception from the HTTP requestvoid enqueue(ServiceCallback<? super T> callback)
callback
- the callbackvoid enqueueWithDetails(ServiceCallbackWithDetails<T> callback)
callback
- the callbackjersey.repackaged.jsr166e.CompletableFuture<T> rx()