AutoCloseable, Closeablepublic interface Bintray extends Closeable
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
org.apache.http.HttpResponse |
delete(String uri,
Map<String,String> headers) |
|
org.apache.http.HttpResponse |
get(String uri,
Map<String,String> headers) |
Following are generic HTTP requests you can perform against Bintray's API, as defined in your created client
(so the uri parameter should be the required path after api.bintray.com).
|
org.apache.http.HttpResponse |
head(String uri,
Map<String,String> headers) |
|
org.apache.http.HttpResponse |
patch(String uri,
Map<String,String> headers,
InputStream elementInputStream) |
|
PackageHandle |
pkg(String packagePath) |
|
org.apache.http.HttpResponse |
post(String uri,
Map<String,String> headers,
InputStream elementInputStream) |
|
org.apache.http.HttpResponse |
put(String uri,
Map<String,String> headers,
InputStream elementInputStream) |
PUT single item
|
org.apache.http.HttpResponse |
put(Map<String,InputStream> uriAndStreamMap,
Map<String,String> headers) |
Concurrently executes a list of
HttpPut requests, which are not handled by
the default response handler to avoid any BintrayCallExceptions being thrown before all requests have executed. |
RepositoryHandle |
repository(String repositoryPath) |
|
SubjectHandle |
subject(String subject) |
|
VersionHandle |
version(String versionPath) |
SubjectHandle subject(String subject)
RepositoryHandle repository(String repositoryPath)
PackageHandle pkg(String packagePath)
VersionHandle version(String versionPath)
org.apache.http.HttpResponse get(String uri, Map<String,String> headers) throws BintrayCallException
BintrayCallExceptionorg.apache.http.HttpResponse head(String uri, Map<String,String> headers) throws BintrayCallException
BintrayCallExceptionorg.apache.http.HttpResponse post(String uri, Map<String,String> headers, InputStream elementInputStream) throws BintrayCallException
BintrayCallExceptionorg.apache.http.HttpResponse patch(String uri, Map<String,String> headers, InputStream elementInputStream) throws BintrayCallException
BintrayCallExceptionorg.apache.http.HttpResponse delete(String uri, Map<String,String> headers) throws BintrayCallException
BintrayCallExceptionorg.apache.http.HttpResponse put(String uri, Map<String,String> headers, InputStream elementInputStream) throws BintrayCallException
BintrayCallExceptionorg.apache.http.HttpResponse put(Map<String,InputStream> uriAndStreamMap, Map<String,String> headers) throws MultipleBintrayCallException
HttpPut requests, which are not handled by
the default response handler to avoid any BintrayCallExceptions being thrown before all requests have executed.MultipleBintrayCallExceptionvoid close()
close in interface AutoCloseableclose in interface Closeable