Interface Bintray
-
- All Superinterfaces:
AutoCloseable
,Closeable
public interface Bintray extends Closeable
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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 itemorg.apache.http.HttpResponse
put(Map<String,InputStream> uriAndStreamMap, Map<String,String> headers)
Concurrently executes a list ofHttpPut
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)
-
-
-
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 ofHttpPut
requests, 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-