Class MultipartFormEntity
- java.lang.Object
-
- org.apache.hc.client5.http.entity.mime.MultipartFormEntity
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.hc.core5.http.EntityDetails,org.apache.hc.core5.http.HttpEntity
class MultipartFormEntity extends java.lang.Object implements org.apache.hc.core5.http.HttpEntity
-
-
Field Summary
Fields Modifier and Type Field Description private longcontentLengthprivate org.apache.hc.core5.http.ContentTypecontentTypeprivate AbstractMultipartFormatmultipart
-
Constructor Summary
Constructors Constructor Description MultipartFormEntity(AbstractMultipartFormat multipart, org.apache.hc.core5.http.ContentType contentType, long contentLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.io.InputStreamgetContent()java.lang.StringgetContentEncoding()longgetContentLength()java.lang.StringgetContentType()(package private) AbstractMultipartFormatgetMultipart()java.util.Set<java.lang.String>getTrailerNames()org.apache.hc.core5.function.Supplier<java.util.List<? extends org.apache.hc.core5.http.Header>>getTrailers()booleanisChunked()booleanisRepeatable()booleanisStreaming()voidwriteTo(java.io.OutputStream outStream)
-
-
-
Field Detail
-
multipart
private final AbstractMultipartFormat multipart
-
contentType
private final org.apache.hc.core5.http.ContentType contentType
-
contentLength
private final long contentLength
-
-
Constructor Detail
-
MultipartFormEntity
MultipartFormEntity(AbstractMultipartFormat multipart, org.apache.hc.core5.http.ContentType contentType, long contentLength)
-
-
Method Detail
-
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
public java.lang.String getContentType()
- Specified by:
getContentTypein interfaceorg.apache.hc.core5.http.EntityDetails
-
getContentEncoding
public java.lang.String getContentEncoding()
- Specified by:
getContentEncodingin interfaceorg.apache.hc.core5.http.EntityDetails
-
getContent
public java.io.InputStream getContent() throws java.io.IOException- Specified by:
getContentin interfaceorg.apache.hc.core5.http.HttpEntity- Throws:
java.io.IOException
-
writeTo
public void writeTo(java.io.OutputStream outStream) throws java.io.IOException- Specified by:
writeToin interfaceorg.apache.hc.core5.http.HttpEntity- Throws:
java.io.IOException
-
getTrailers
public org.apache.hc.core5.function.Supplier<java.util.List<? extends org.apache.hc.core5.http.Header>> getTrailers()
- Specified by:
getTrailersin interfaceorg.apache.hc.core5.http.HttpEntity
-
getTrailerNames
public java.util.Set<java.lang.String> getTrailerNames()
- Specified by:
getTrailerNamesin interfaceorg.apache.hc.core5.http.EntityDetails
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-