Package org.apache.nifi.web.client
Class InputStreamRequestBody
java.lang.Object
okhttp3.RequestBody
org.apache.nifi.web.client.InputStreamRequestBody
class InputStreamRequestBody
extends okhttp3.RequestBody
OkHttp Request Body implementation based on an InputStream
-
Nested Class Summary
Nested classes/interfaces inherited from class okhttp3.RequestBody
okhttp3.RequestBody.Companion
-
Field Summary
FieldsFields inherited from class okhttp3.RequestBody
Companion
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
okhttp3.MediaType
void
writeTo
(okio.BufferedSink bufferedSink) Methods inherited from class okhttp3.RequestBody
create, create, create, create, create, create, create, create, create, create, create, create, create, isDuplex, isOneShot
-
Field Details
-
inputStream
-
contentLength
private final long contentLength
-
-
Constructor Details
-
InputStreamRequestBody
InputStreamRequestBody(InputStream inputStream, long contentLength)
-
-
Method Details
-
contentLength
public long contentLength()- Overrides:
contentLength
in classokhttp3.RequestBody
-
contentType
public okhttp3.MediaType contentType()- Specified by:
contentType
in classokhttp3.RequestBody
-
writeTo
- Specified by:
writeTo
in classokhttp3.RequestBody
- Throws:
IOException
-