BaseReferenceRequest<T> Class

Type Parameters

T

the response class

public abstract class BaseReferenceRequest<T>
extends BaseRequest<T>

An HTTP request.

Constructor Summary

Constructor Description
BaseReferenceRequest(String requestUrl, IBaseClient<?> client, List<? extends Option> requestOptions, Class<T> entityType)

The request for reference

Method Summary

Modifier and Type Method and Description
T delete()

Deletes the entity

java.util.concurrent.CompletableFuture<T> deleteAsync()

Deletes the entity and invokes the callback

Methods inherited from BaseRequest

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

BaseReferenceRequest

public BaseReferenceRequest(String requestUrl, IBaseClient client, List requestOptions, Class entityType)

The request for reference

Parameters:

requestUrl - the request URL
client - the service client
requestOptions - the options for this request
entityType - the class for the entity

Method Details

delete

public T delete()

Deletes the entity

Returns:

the result from the API response, if any

Throws:

deleteAsync

public CompletableFuture deleteAsync()

Deletes the entity and invokes the callback

Returns:

a future with the result

Applies to