public interface IHttpManager
| Modifier and Type | Method and Description |
|---|---|
String |
delete(URI uri,
org.apache.hc.core5.http.Header[] headers,
org.apache.hc.core5.http.HttpEntity body)
Perform an HTTP DELETE request to the specified URL.
|
String |
get(URI uri,
org.apache.hc.core5.http.Header[] headers)
Perform an HTTP GET request to the specified URL.
|
String |
post(URI uri,
org.apache.hc.core5.http.Header[] headers,
org.apache.hc.core5.http.HttpEntity body)
Perform an HTTP POST request to the specified URL.
|
String |
put(URI uri,
org.apache.hc.core5.http.Header[] headers,
org.apache.hc.core5.http.HttpEntity body)
Perform an HTTP PUT request to the specified URL.
|
String get(URI uri, org.apache.hc.core5.http.Header[] headers) throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseException
uri - The GET request's URI.headers - The GET request's Headers.IOException - In case of networking issues.SpotifyWebApiException - The Web API returned an error further specified in this exception's root cause.org.apache.hc.core5.http.ParseException - The response could not be parsed as a string.String post(URI uri, org.apache.hc.core5.http.Header[] headers, org.apache.hc.core5.http.HttpEntity body) throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseException
uri - The POST request's URI.headers - The POST request's Headers.body - The PUT request's body as a HttpEntity.IOException - In case of networking issues.SpotifyWebApiException - The Web API returned an error further specified in this exception's root cause.org.apache.hc.core5.http.ParseException - The response could not be parsed as a string.String put(URI uri, org.apache.hc.core5.http.Header[] headers, org.apache.hc.core5.http.HttpEntity body) throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseException
uri - The PUT request's URI.headers - The PUT request's Headers.body - The PUT request's body as a HttpEntity.IOException - In case of networking issues.SpotifyWebApiException - The Web API returned an error further specified in this exception's root cause.org.apache.hc.core5.http.ParseException - The response could not be parsed as a string.String delete(URI uri, org.apache.hc.core5.http.Header[] headers, org.apache.hc.core5.http.HttpEntity body) throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseException
uri - The DELETE request's URI.headers - The DELETE request's Headers.body - The DELETE request's body as a HttpEntity.IOException - In case of networking issues.SpotifyWebApiException - The Web API returned an error further specified in this exception's root cause.org.apache.hc.core5.http.ParseException - The response could not be parsed as a string.Copyright © 2020. All rights reserved.