public class HttpClient extends Object
| Constructor and Description |
|---|
HttpClient(HttpURLConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilePart(String paramName,
String fileName,
InputStream data) |
void |
addFormPart(String paramName,
String value) |
void |
connectForMultipart() |
void |
finishMultipart() |
String |
getErrorString() |
String |
getResponse() |
void |
setWriteSoundLog(boolean writeSoundLog) |
public HttpClient(HttpURLConnection connection)
connection - Cannot be nullpublic void connectForMultipart()
throws IOException
IOExceptionpublic void addFormPart(String paramName, String value) throws IOException
paramName - Cannot be nullvalue - Cannot be nullIOExceptionpublic void addFilePart(String paramName, String fileName, InputStream data) throws IOException
paramName - Cannot be nullfileName - Cannot be nulldata - Cannot be nullIOExceptionpublic void finishMultipart()
throws IOException
IOExceptionpublic String getResponse() throws IOException
nullIOExceptionpublic String getErrorString()
public void setWriteSoundLog(boolean writeSoundLog)
Copyright © 2016. All rights reserved.