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:Request
Queue the request asynchronous.- Specified by:
queue
in interfaceRequest<byte[]>
- Specified by:
queue
in classRequestBuilder<byte[]>
- Returns:
- completable future providing the response
-
complete
public byte[] complete()Description copied from interface:Request
Sends the request and handles the response on the current thread- Specified by:
complete
in interfaceRequest<byte[]>
- Specified by:
complete
in classRequestBuilder<byte[]>
- Returns:
- response
-