Package io.odilon.client.http.multipart
Class HttpRequest
java.lang.Object
io.odilon.client.http.multipart.HttpRequest
- Direct Known Subclasses:
HttpMultipart
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHttpRequest
(String url, String credentials, boolean isSSL, boolean isAcceptAllCertificates) HttpRequest
(String url, String credentials, boolean isSSL, boolean isAcceptAllCertificates, ProgressListener listener) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
close()
<T> T
exchange
(HttpEntity requestEntity, com.fasterxml.jackson.core.type.TypeReference<T> responseType) int
getChunk()
protected String
protected boolean
protected String
protected String
protected String
int
getUrl()
boolean
boolean
isSSL()
protected HttpURLConnection
void
setApiToken
(String apiToken) void
setChunk
(int chunk) void
setConnection
(HttpURLConnection connection) void
setCredentials
(String credentials) void
setListener
(ProgressListener listener) void
protected void
write
(HttpEntity entity)
-
Field Details
-
LINE_FEED
-
-
Constructor Details
-
HttpRequest
-
HttpRequest
public HttpRequest(String url, String credentials, boolean isSSL, boolean isAcceptAllCertificates, ProgressListener listener)
-
-
Method Details
-
getListener
-
setListener
-
getChunk
public int getChunk() -
setChunk
public void setChunk(int chunk) -
isSSL
public boolean isSSL() -
isAcceptAllCertificates
public boolean isAcceptAllCertificates() -
exchange
public <T> T exchange(HttpEntity requestEntity, com.fasterxml.jackson.core.type.TypeReference<T> responseType) throws ODClientException - Type Parameters:
T
-- Parameters:
requestEntity
-responseType
-- Returns:
- Throws:
ODClientException
-
getWriter
- Throws:
IOException
-
getReader
- Throws:
IOException
-
getErrorReader
- Throws:
IOException
-
getResponseCode
- Throws:
IOException
-
getConnection
- Throws:
IOException
-
setUrl
-
setCredentials
-
getUrl
- Throws:
MalformedURLException
-
getCredentials
-
getApiToken
-
setApiToken
-
setConnection
-
write
- Throws:
IOException
-
getResponse
- Throws:
IOException
-
getErrorResponse
- Throws:
IOException
-
getRequestMethod
-
getContentType
-
getDoOutput
protected boolean getDoOutput() -
openConnection
- Throws:
IOException
-
close
protected void close()
-