Class BLNexusRequests
java.lang.Object
com.io7m.brooklime.vanilla.internal.BLNexusRequests
A Nexus request provider.
-
Constructor Summary
ConstructorsConstructorDescriptionBLNexusRequests(ScheduledExecutorService inExecutor, HttpClient inClient, BLNexusParsers inNexusParsers, BLNexusClientConfiguration inConfiguration) A Nexus request provider. -
Method Summary
Modifier and TypeMethodDescriptionCreate an upload request for the server.Request a list of staging repositories from the server.stagingRepository(String repositoryId) Request a staging repository from the server.voidClose a staging repository on the server.Create a staging repository on the server.voidDrop a staging repository on the server.voidRelease a staging repository on the server.voidupload(BLProgressCounter counter, BLStagingRepositoryUpload upload) Execute an upload request for the server.
-
Constructor Details
-
BLNexusRequests
public BLNexusRequests(ScheduledExecutorService inExecutor, HttpClient inClient, BLNexusParsers inNexusParsers, BLNexusClientConfiguration inConfiguration) A Nexus request provider.- Parameters:
inExecutor- An executor serviceinClient- An HTTP clientinNexusParsers- A provider of Nexus parsersinConfiguration- The client configuration
-
-
Method Details
-
stagingRepositories
Request a list of staging repositories from the server.- Returns:
- A list of staging repositories
- Throws:
BLException- On errors
-
stagingRepository
public Optional<BLStagingProfileRepository> stagingRepository(String repositoryId) throws BLException Request a staging repository from the server.- Parameters:
repositoryId- The repository ID- Returns:
- A staging repository
- Throws:
BLException- On errors
-
stagingRepositoryCreate
Create a staging repository on the server.- Parameters:
create- The repository creation info- Returns:
- A staging repository ID
- Throws:
BLException- On errors
-
stagingRepositoryDrop
Drop a staging repository on the server.- Parameters:
drop- The repository info- Throws:
BLException- On errorsIOException- On errors
-
stagingRepositoryClose
Close a staging repository on the server.- Parameters:
close- The repository info- Throws:
BLException- On errorsIOException- On errors
-
stagingRepositoryRelease
public void stagingRepositoryRelease(BLStagingRepositoryRelease release) throws BLException, IOException Release a staging repository on the server.- Parameters:
release- The repository info- Throws:
BLException- On errorsIOException- On errors
-
createUploadRequest
public BLStagingRepositoryUpload createUploadRequest(BLStagingRepositoryUploadRequestParameters parameters) throws BLException Create an upload request for the server.- Parameters:
parameters- The upload info- Returns:
- An upload
- Throws:
BLException- On errors
-
upload
Execute an upload request for the server.- Parameters:
counter- The progress counterupload- The upload- Throws:
BLException- On errors
-