public class SpotifyHttpManager extends Object implements HttpManager
| Modifier and Type | Class and Description |
|---|---|
static class |
SpotifyHttpManager.Builder |
| Constructor and Description |
|---|
SpotifyHttpManager(SpotifyHttpManager.Builder builder)
Construct a new SpotifyHttpManager instance.
|
| Modifier and Type | Method and Description |
|---|---|
static SpotifyHttpManager.Builder |
builder() |
String |
delete(UtilProtos.Url url)
Perform an HTTP DELETE request to the specified URL.
|
String |
get(UtilProtos.Url url)
Perform an HTTP GET request to the specified URL.
|
String |
post(UtilProtos.Url url)
Perform an HTTP POST request to the specified URL.
|
String |
put(UtilProtos.Url url)
Perform an HTTP PUT request to the specified URL.
|
public SpotifyHttpManager(SpotifyHttpManager.Builder builder)
builder - The builder.public String get(UtilProtos.Url url) throws WebApiException, IOException
HttpManagerget in interface HttpManagerurl - the UtilProtos.Url to HTTP GET.WebApiException - In case of error replies from the Web API.IOException - In case of networking issues.public String post(UtilProtos.Url url) throws IOException, WebApiException
HttpManagerpost in interface HttpManagerurl - the UtilProtos.Url to HTTP POST.IOException - In case of networking issues.WebApiException - In case of error replies from the Web API.public String put(UtilProtos.Url url) throws IOException, WebApiException
HttpManagerput in interface HttpManagerurl - the UtilProtos.Url to HTTP PUT.IOException - In case of networking issues.WebApiException - In case of error replies from the Web API.public String delete(UtilProtos.Url url) throws IOException, WebApiException
HttpManagerdelete in interface HttpManagerurl - the UtilProtos.Url to HTTP DELETE.IOExceptionWebApiExceptionpublic static SpotifyHttpManager.Builder builder()
Copyright © 2015. All rights reserved.