| Constructor and Description |
|---|
Client(Credentials credentials) |
Client(Credentials credentials,
Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
Credentials |
getCredentials() |
Result |
getDistributions()
Gets all distributions.
|
org.apache.http.HttpHost |
getTargetHost() |
String |
getToken() |
String |
getUsername() |
Result |
packageContents(InputStream fileStream,
String filename,
String repository)
Gets the contents of a package
|
Result |
putPackage(InputStream fileStream,
String filename,
String repository,
Integer distroVersionId,
Map<String,InputStream> sourceFiles) |
Result |
putPackage(InputStream fileStream,
String filename,
String username,
String repository,
Integer distroVersionId,
Map<String,InputStream> sourceFiles)
Put package.
|
public Client(Credentials credentials)
public Client(Credentials credentials, Connection connection)
public org.apache.http.HttpHost getTargetHost()
public Credentials getCredentials()
public String getToken()
public String getUsername()
public Result getDistributions() throws UnauthorizedException, IOException, ServerErrorException
ClientgetDistributions in interface ClientUnauthorizedExceptionIOExceptionServerErrorExceptionpublic Result packageContents(InputStream fileStream, String filename, String repository) throws UnauthorizedException, IOException, ServerErrorException
ClientpackageContents in interface ClientfileStream - the file streamfilename - the filenamerepository - the repositoryUnauthorizedExceptionIOExceptionServerErrorExceptionpublic Result putPackage(InputStream fileStream, String filename, String repository, Integer distroVersionId, Map<String,InputStream> sourceFiles) throws UnauthorizedException, IOException, ServerErrorException
public Result putPackage(InputStream fileStream, String filename, String username, String repository, Integer distroVersionId, Map<String,InputStream> sourceFiles) throws UnauthorizedException, IOException, ServerErrorException
ClientputPackage in interface ClientfileStream - the file streamfilename - the filenameusername - the usernamerepository - the repositorydistroVersionId - the distro version idsourceFiles - the source filesUnauthorizedExceptionIOExceptionServerErrorExceptionCopyright © 2014–2016. All rights reserved.