Package io.odilon.client.http.multipart
Class HttpRequest
java.lang.Object
io.odilon.client.http.multipart.HttpRequest
- Direct Known Subclasses:
HttpMultipart
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHttpRequest(String url, String credentials, boolean isSSL, boolean isAcceptAllCertificates) HttpRequest(String url, String credentials, boolean isSSL, boolean isAcceptAllCertificates, ProgressListener listener) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclose()<T> Texchange(HttpEntity requestEntity, com.fasterxml.jackson.core.type.TypeReference<T> responseType) intgetChunk()protected Stringprotected booleanprotected Stringprotected Stringprotected StringintgetUrl()booleanbooleanisSSL()protected HttpURLConnectionvoidsetApiToken(String apiToken) voidsetChunk(int chunk) voidsetConnection(HttpURLConnection connection) voidsetCredentials(String credentials) voidsetListener(ProgressListener listener) voidprotected voidwrite(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()
-