public class FilePostSender extends PostSender
| Modifier and Type | Field and Description |
|---|---|
static String |
SEPARATOR |
callback, conn, Default_Conn_Timeout, Default_Read_Timeout, es, followRedirects, interceptor, progressListener, request, sslSocketFactory| Constructor and Description |
|---|
FilePostSender(Request request) |
| Modifier and Type | Method and Description |
|---|---|
static FilePostSender |
create(Request request) |
static void |
export(Map<String,Object> params,
OutputStream out,
String boundary,
String enc) |
int |
getEstimationSize() |
Response |
send() |
protected static void |
writeFile(File f,
String key,
DataOutputStream outs,
String boundary,
String enc) |
call, create, create, create, createResponse, getConnTimeout, getExecutorService, getOutputStream, getResponseHeader, getTimeout, openConnection, send, setCallback, setConnTimeout, setFollowRedirects, setInterceptor, setProgressListener, setSSLSocketFactory, setTimeout, setup, setupDoInputOutputFlag, setupRequestHeader, shutdownpublic static final String SEPARATOR
public FilePostSender(Request request)
public static FilePostSender create(Request request)
public Response send() throws HttpException
send in class PostSenderHttpExceptionpublic static void export(Map<String,Object> params, OutputStream out, String boundary, String enc) throws IOException
IOExceptionprotected static void writeFile(File f, String key, DataOutputStream outs, String boundary, String enc) throws IOException
IOExceptionpublic int getEstimationSize()
throws IOException
getEstimationSize in class PostSenderIOExceptionCopyright © 2017. All rights reserved.