Class DownloadRequest
java.lang.Object
de.chojo.nexus.requests.RequestBuilder<byte[]>
de.chojo.nexus.requests.v1.assets.DownloadRequest
- All Implemented Interfaces:
Request<byte[]>
-
Field Summary
Fields inherited from class de.chojo.nexus.requests.RequestBuilder
rest -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]complete()Sends the request and handles the response on the current threadCompletableFuture<byte[]>queue()Queue the request asynchronous.Methods inherited from class de.chojo.nexus.requests.RequestBuilder
parameter, path, path, uri
-
Constructor Details
-
DownloadRequest
-
-
Method Details
-
queue
Description copied from interface:RequestQueue the request asynchronous.- Specified by:
queuein interfaceRequest<byte[]>- Specified by:
queuein classRequestBuilder<byte[]>- Returns:
- completable future providing the response
-
complete
public byte[] complete()Description copied from interface:RequestSends the request and handles the response on the current thread- Specified by:
completein interfaceRequest<byte[]>- Specified by:
completein classRequestBuilder<byte[]>- Returns:
- response
-