public class FilesOkHttpApi extends Object implements FilesApiInterface
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
FilesOkHttpApi() |
| Modifier and Type | Method and Description |
|---|---|
FilesResponse |
apiRequest(String url,
HttpMethods.RequestMethods requestType,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
<T> T |
apiRequestItem(String url,
HttpMethods.RequestMethods requestType,
com.fasterxml.jackson.core.type.TypeReference<T> clazz,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
<T> ListIterator<T> |
apiRequestList(String url,
HttpMethods.RequestMethods requestType,
com.fasterxml.jackson.core.type.TypeReference<List<T>> clazz,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static okhttp3.RequestBody |
create(okhttp3.MediaType contentType,
BufferedInputStream inputStream,
long length) |
FilesInputStream |
getFileInputStream(String url,
long start,
long end) |
long |
putBuffer(String url,
HttpMethods.RequestMethods requestType,
String name,
byte[] buffer,
long length) |
long |
putBufferedInputStream(String url,
HttpMethods.RequestMethods requestType,
String name,
BufferedInputStream inputStream,
long length) |
static void |
updateRequestWithHttpMethod(okhttp3.Request.Builder request,
okhttp3.RequestBody body,
HttpMethods.RequestMethods requestType) |
public <T> ListIterator<T> apiRequestList(String url, HttpMethods.RequestMethods requestType, com.fasterxml.jackson.core.type.TypeReference<List<T>> clazz, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
apiRequestList in interface FilesApiInterfaceRuntimeExceptionpublic <T> T apiRequestItem(String url, HttpMethods.RequestMethods requestType, com.fasterxml.jackson.core.type.TypeReference<T> clazz, HashMap<String,Object> parameters, HashMap<String,Object> options) throws IllegalArgumentException, RuntimeException
apiRequestItem in interface FilesApiInterfaceIllegalArgumentExceptionRuntimeExceptionpublic FilesResponse apiRequest(String url, HttpMethods.RequestMethods requestType, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
apiRequest in interface FilesApiInterfaceRuntimeExceptionpublic FilesInputStream getFileInputStream(String url, long start, long end) throws IOException
getFileInputStream in interface FilesApiInterfaceIOExceptionpublic long putBuffer(String url, HttpMethods.RequestMethods requestType, String name, byte[] buffer, long length) throws IOException
putBuffer in interface FilesApiInterfaceIOExceptionpublic long putBufferedInputStream(String url, HttpMethods.RequestMethods requestType, String name, BufferedInputStream inputStream, long length) throws IOException
putBufferedInputStream in interface FilesApiInterfaceIOExceptionpublic static void updateRequestWithHttpMethod(okhttp3.Request.Builder request,
okhttp3.RequestBody body,
HttpMethods.RequestMethods requestType)
public static okhttp3.RequestBody create(okhttp3.MediaType contentType,
BufferedInputStream inputStream,
long length)
Copyright © 2024 com.github.files-com. All rights reserved.