public abstract class FilesClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
apiKey |
static okhttp3.ConnectionPool |
httpPool |
static Session |
session |
| Constructor and Description |
|---|
FilesClient() |
| Modifier and Type | Method and Description |
|---|---|
static FilesResponse |
apiRequest(String url,
HttpMethods.RequestMethods requestType,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static FilesInputStream |
getFileInputStream(String url,
long start,
long end) |
static long |
putBuffer(String url,
HttpMethods.RequestMethods requestType,
String name,
byte[] buffer,
long length) |
static long |
putBufferedInputStream(String url,
HttpMethods.RequestMethods requestType,
String name,
BufferedInputStream inputStream,
long length) |
static <T> T |
requestItem(String url,
HttpMethods.RequestMethods requestType,
com.fasterxml.jackson.core.type.TypeReference<T> className,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static <T> ListIterator<T> |
requestList(String url,
HttpMethods.RequestMethods requestType,
com.fasterxml.jackson.core.type.TypeReference<List<T>> className,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
setProperty(String property,
String value) |
public static String apiKey
public static Session session
public static okhttp3.ConnectionPool httpPool
public static FilesResponse apiRequest(String url, HttpMethods.RequestMethods requestType, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static <T> ListIterator<T> requestList(String url, HttpMethods.RequestMethods requestType, com.fasterxml.jackson.core.type.TypeReference<List<T>> className, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static <T> T requestItem(String url, HttpMethods.RequestMethods requestType, com.fasterxml.jackson.core.type.TypeReference<T> className, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static FilesInputStream getFileInputStream(String url, long start, long end) throws IOException
IOExceptionpublic static long putBuffer(String url, HttpMethods.RequestMethods requestType, String name, byte[] buffer, long length) throws IOException
IOExceptionpublic static long putBufferedInputStream(String url, HttpMethods.RequestMethods requestType, String name, BufferedInputStream inputStream, long length) throws IOException
IOExceptionCopyright © 2024 com.github.files-com. All rights reserved.