public abstract class UploadQueryBuilder<T,R> extends ApiRequest<R>
| Constructor and Description |
|---|
UploadQueryBuilder(VkApiClient client,
java.lang.String uploadUrl,
java.util.Map<java.lang.String,java.io.File> files,
java.lang.reflect.Type type) |
| Modifier and Type | Method and Description |
|---|---|
R |
execute() |
java.lang.String |
executeAsString() |
ClientResponse |
executeAsStringWithReturningFullInfo() |
ClientResponseTypeable<R> |
executeTypeable() |
protected java.lang.String |
getBody() |
protected org.apache.http.Header[] |
getQueryHeaders() |
protected abstract T |
getThis() |
T |
withHeader(org.apache.http.message.BasicHeader header)
Add header to request
|
T |
withHeaders(java.util.List<org.apache.http.message.BasicHeader> list)
Add multiple headers to request
|
addHeader, addHeaders, executeAsRaw, executeTypeableWithoutRetry, executeWithoutRetry, getClient, getCookie, getGson, getHeaders, getResponseClass, getUrl, setCookie, setCookies, setHeaders, setHeaderspublic UploadQueryBuilder(VkApiClient client, java.lang.String uploadUrl, java.util.Map<java.lang.String,java.io.File> files, java.lang.reflect.Type type)
protected abstract T getThis()
public R execute() throws ApiException, ClientException
execute in class ApiRequest<R>ApiExceptionClientExceptionpublic ClientResponseTypeable<R> executeTypeable() throws ApiExtendedException, ClientException
executeTypeable in class ApiRequest<R>ApiExtendedExceptionClientExceptionpublic ClientResponse executeAsStringWithReturningFullInfo() throws ClientException
executeAsStringWithReturningFullInfo in class ApiRequest<R>ClientExceptionpublic java.lang.String executeAsString()
throws ClientException
executeAsString in class ApiRequest<R>ClientExceptionprotected java.lang.String getBody()
getBody in class ApiRequest<R>protected org.apache.http.Header[] getQueryHeaders()
getQueryHeaders in class ApiRequest<R>public T withHeader(org.apache.http.message.BasicHeader header)
header - Header to be added to the requestAbstractQueryBuilder object to fulfill the "Builder" pattern.public T withHeaders(java.util.List<org.apache.http.message.BasicHeader> list)
list - List of headers which need to be added to requestAbstractQueryBuilder object to fulfill the "Builder" pattern.