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(@NotNull
HttpURLConnection connection)
public void connectForMultipart()
throws IOException
IOExceptionpublic void addFormPart(@NotNull
String paramName,
@NotNull
String value)
throws IOException
IOExceptionpublic void addFilePart(@NotNull
String paramName,
@NotNull
String fileName,
@NotNull
InputStream data)
throws IOException
IOExceptionpublic void finishMultipart()
throws IOException
IOException@NotNull public String getResponse() throws IOException
IOExceptionpublic String getErrorString()
public void setWriteSoundLog(boolean writeSoundLog)
Copyright © 2016. All rights reserved.