IRequestAbstractAthorizationRequest, AbstractDataRequest, AuthorizationCodeUriRequestpublic abstract class AbstractRequest extends Object implements IRequest
| Modifier and Type | Class | Description |
|---|---|---|
static class |
AbstractRequest.Builder<T extends AbstractRequest.Builder<?>> |
| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractRequest(AbstractRequest.Builder<?> builder) |
| Modifier and Type | Method | Description |
|---|---|---|
String |
bodyParametersToJson(List<org.apache.http.NameValuePair> bodyParameters) |
|
String |
deleteJson() |
|
<T> Future<T> |
executeAsync() |
Get something asynchronously.
|
org.apache.http.HttpEntity |
getBody() |
|
List<org.apache.http.NameValuePair> |
getBodyParameters() |
|
org.apache.http.entity.ContentType |
getContentType() |
|
List<org.apache.http.Header> |
getHeaders() |
|
IHttpManager |
getHttpManager() |
|
String |
getJson() |
|
URI |
getUri() |
|
void |
initializeBody() |
|
String |
postJson() |
|
String |
putJson() |
protected AbstractRequest(AbstractRequest.Builder<?> builder)
public <T> Future<T> executeAsync()
executeAsync in interface IRequestFuture for a generic.public void initializeBody()
throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic String bodyParametersToJson(List<org.apache.http.NameValuePair> bodyParameters)
public String getJson() throws IOException, SpotifyWebApiException
getJson in interface IRequestIOExceptionSpotifyWebApiExceptionpublic String postJson() throws IOException, SpotifyWebApiException
postJson in interface IRequestIOExceptionSpotifyWebApiExceptionpublic String putJson() throws IOException, SpotifyWebApiException
putJson in interface IRequestIOExceptionSpotifyWebApiExceptionpublic String deleteJson() throws IOException, SpotifyWebApiException
deleteJson in interface IRequestIOExceptionSpotifyWebApiExceptionpublic IHttpManager getHttpManager()
getHttpManager in interface IRequestpublic List<org.apache.http.Header> getHeaders()
getHeaders in interface IRequestpublic org.apache.http.entity.ContentType getContentType()
getContentType in interface IRequestpublic List<org.apache.http.NameValuePair> getBodyParameters()
getBodyParameters in interface IRequestCopyright © 2019. All rights reserved.