Interface Bintray
-
- All Superinterfaces:
AutoCloseable,Closeable
public interface Bintray extends Closeable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()org.apache.http.HttpResponsedelete(String uri, Map<String,String> headers)org.apache.http.HttpResponseget(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.HttpResponsehead(String uri, Map<String,String> headers)org.apache.http.HttpResponsepatch(String uri, Map<String,String> headers, InputStream elementInputStream)PackageHandlepkg(String packagePath)org.apache.http.HttpResponsepost(String uri, Map<String,String> headers, InputStream elementInputStream)org.apache.http.HttpResponseput(String uri, Map<String,String> headers, InputStream elementInputStream)PUT single itemorg.apache.http.HttpResponseput(Map<String,InputStream> uriAndStreamMap, Map<String,String> headers)Concurrently executes a list ofHttpPutrequests, which are not handled by the default response handler to avoid any BintrayCallExceptions being thrown before all requests have executed.RepositoryHandlerepository(String repositoryPath)SubjectHandlesubject(String subject)VersionHandleversion(String versionPath)
-
-
-
Method Detail
-
subject
SubjectHandle subject(String subject)
-
repository
RepositoryHandle repository(String repositoryPath)
-
pkg
PackageHandle pkg(String packagePath)
-
version
VersionHandle version(String versionPath)
-
get
org.apache.http.HttpResponse get(String uri, Map<String,String> headers) throws BintrayCallException
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). You can also optionally add your own headers to the requests.- Throws:
BintrayCallException
-
head
org.apache.http.HttpResponse head(String uri, Map<String,String> headers) throws BintrayCallException
- Throws:
BintrayCallException
-
post
org.apache.http.HttpResponse post(String uri, Map<String,String> headers, InputStream elementInputStream) throws BintrayCallException
- Throws:
BintrayCallException
-
patch
org.apache.http.HttpResponse patch(String uri, Map<String,String> headers, InputStream elementInputStream) throws BintrayCallException
- Throws:
BintrayCallException
-
delete
org.apache.http.HttpResponse delete(String uri, Map<String,String> headers) throws BintrayCallException
- Throws:
BintrayCallException
-
put
org.apache.http.HttpResponse put(String uri, Map<String,String> headers, InputStream elementInputStream) throws BintrayCallException
PUT single item- Throws:
BintrayCallException
-
put
org.apache.http.HttpResponse put(Map<String,InputStream> uriAndStreamMap, Map<String,String> headers) throws MultipleBintrayCallException
Concurrently executes a list ofHttpPutrequests, which are not handled by the default response handler to avoid any BintrayCallExceptions being thrown before all requests have executed.- Returns:
- A list of all errors thrown while performing the requests or empty list if all requests finished OK
- Throws:
MultipleBintrayCallException
-
close
void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-