Package io.odilon.client.http.multipart
Class HttpMultipart
- java.lang.Object
-
- io.odilon.client.http.multipart.HttpRequest
-
- io.odilon.client.http.multipart.HttpMultipart
-
public class HttpMultipart extends HttpRequest
-
-
Field Summary
-
Fields inherited from class io.odilon.client.http.multipart.HttpRequest
LINE_FEED
-
-
Constructor Summary
Constructors Constructor Description HttpMultipart(String url, String credentials)
HttpMultipart(String url, String credentials, ProgressListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getContentType()
protected boolean
getDoOutput()
protected String
getRequestMethod()
protected void
write(HttpEntity entity)
protected void
writeEnd(HttpEntity requestEntity)
protected void
writeStart(HttpEntity requestEntity)
-
Methods inherited from class io.odilon.client.http.multipart.HttpRequest
close, exchange, getApiToken, getChunk, getConnection, getCredentials, getErrorReader, getErrorResponse, getListener, getReader, getResponse, getResponseCode, getUrl, getWriter, openConnection, setApiToken, setChunk, setConnection, setCredentials, setListener, setUrl
-
-
-
-
Constructor Detail
-
HttpMultipart
public HttpMultipart(String url, String credentials, ProgressListener listener)
-
-
Method Detail
-
write
protected void write(HttpEntity entity) throws IOException
- Overrides:
write
in classHttpRequest
- Throws:
IOException
-
getRequestMethod
protected String getRequestMethod()
- Overrides:
getRequestMethod
in classHttpRequest
-
getDoOutput
protected boolean getDoOutput()
- Overrides:
getDoOutput
in classHttpRequest
-
getContentType
protected String getContentType()
- Overrides:
getContentType
in classHttpRequest
-
writeStart
protected void writeStart(HttpEntity requestEntity) throws IOException
- Throws:
IOException
-
writeEnd
protected void writeEnd(HttpEntity requestEntity) throws IOException
- Throws:
IOException
-
-