Class MultipartFormEntity
java.lang.Object
org.apache.hc.client5.http.entity.mime.MultipartFormEntity
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.hc.core5.http.EntityDetails
,org.apache.hc.core5.http.HttpEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long
private final org.apache.hc.core5.http.ContentType
private final AbstractMultipartFormat
-
Constructor Summary
ConstructorsConstructorDescriptionMultipartFormEntity
(AbstractMultipartFormat multipart, org.apache.hc.core5.http.ContentType contentType, long contentLength) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
long
(package private) AbstractMultipartFormat
org.apache.hc.core5.function.Supplier
<List<? extends org.apache.hc.core5.http.Header>> boolean
boolean
boolean
void
writeTo
(OutputStream outStream)
-
Field Details
-
multipart
-
contentType
private final org.apache.hc.core5.http.ContentType contentType -
contentLength
private final long contentLength
-
-
Constructor Details
-
MultipartFormEntity
MultipartFormEntity(AbstractMultipartFormat multipart, org.apache.hc.core5.http.ContentType contentType, long contentLength)
-
-
Method Details
-
getMultipart
AbstractMultipartFormat getMultipart() -
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatable
in interfaceorg.apache.hc.core5.http.HttpEntity
-
isChunked
public boolean isChunked()- Specified by:
isChunked
in interfaceorg.apache.hc.core5.http.EntityDetails
-
isStreaming
public boolean isStreaming()- Specified by:
isStreaming
in interfaceorg.apache.hc.core5.http.HttpEntity
-
getContentLength
public long getContentLength()- Specified by:
getContentLength
in interfaceorg.apache.hc.core5.http.EntityDetails
-
getContentType
- Specified by:
getContentType
in interfaceorg.apache.hc.core5.http.EntityDetails
-
getContentEncoding
- Specified by:
getContentEncoding
in interfaceorg.apache.hc.core5.http.EntityDetails
-
getContent
- Specified by:
getContent
in interfaceorg.apache.hc.core5.http.HttpEntity
- Throws:
IOException
-
writeTo
- Specified by:
writeTo
in interfaceorg.apache.hc.core5.http.HttpEntity
- Throws:
IOException
-
getTrailers
public org.apache.hc.core5.function.Supplier<List<? extends org.apache.hc.core5.http.Header>> getTrailers()- Specified by:
getTrailers
in interfaceorg.apache.hc.core5.http.HttpEntity
-
getTrailerNames
- Specified by:
getTrailerNames
in interfaceorg.apache.hc.core5.http.EntityDetails
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-