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 longprivate final org.apache.hc.core5.http.ContentTypeprivate final AbstractMultipartFormat -
Constructor Summary
ConstructorsConstructorDescriptionMultipartFormEntity(AbstractMultipartFormat multipart, org.apache.hc.core5.http.ContentType contentType, long contentLength) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()long(package private) AbstractMultipartFormatorg.apache.hc.core5.function.Supplier<List<? extends org.apache.hc.core5.http.Header>> booleanbooleanbooleanvoidwriteTo(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:
isRepeatablein interfaceorg.apache.hc.core5.http.HttpEntity
-
isChunked
public boolean isChunked()- Specified by:
isChunkedin interfaceorg.apache.hc.core5.http.EntityDetails
-
isStreaming
public boolean isStreaming()- Specified by:
isStreamingin interfaceorg.apache.hc.core5.http.HttpEntity
-
getContentLength
public long getContentLength()- Specified by:
getContentLengthin interfaceorg.apache.hc.core5.http.EntityDetails
-
getContentType
- Specified by:
getContentTypein interfaceorg.apache.hc.core5.http.EntityDetails
-
getContentEncoding
- Specified by:
getContentEncodingin interfaceorg.apache.hc.core5.http.EntityDetails
-
getContent
- Specified by:
getContentin interfaceorg.apache.hc.core5.http.HttpEntity- Throws:
IOException
-
writeTo
- Specified by:
writeToin 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:
getTrailersin interfaceorg.apache.hc.core5.http.HttpEntity
-
getTrailerNames
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-