| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final ContentType | |
| private final AbstractMultipartFormat |
| Access | Constructor and Description |
|---|---|
| pack-priv | MultipartFormEntity(final AbstractMultipartFormat multipart, final ContentType contentType, final long contentLength)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. |
| public InputStream | getContent()
Implements org. |
| public String | getContentEncoding()
Implements org. |
| public long | getContentLength()
Implements org. |
| public String | getContentType()
Implements org. |
| pack-priv AbstractMultipartFormat | |
| public Set | getTrailerNames()
Implements org. |
| public Supplier | getTrailers()
Implements org. |
| public boolean | isChunked()
Implements org. |
| public boolean | isRepeatable()
Implements org. |
| public boolean | isStreaming()
Implements org. |
| public void | writeTo(final OutputStream
the output stream to write entity content to outStream)Implements org. |
| contentLength | back to summary |
|---|---|
| private final long contentLength | |
| contentType | back to summary |
|---|---|
| private final ContentType contentType | |
| multipart | back to summary |
|---|---|
| private final AbstractMultipartFormat multipart | |
| MultipartFormEntity | back to summary |
|---|---|
| pack-priv MultipartFormEntity(final AbstractMultipartFormat multipart, final ContentType contentType, final long contentLength) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| getContent | back to summary |
|---|---|
| public InputStream getContent() throws IOException Implements org. Doc from org. Returns a content stream of the entity.
If this entity belongs to an incoming HTTP message, calling
Important Note Please note all entity implementations must ensure that
all allocated resources are properly deallocated after
the
| |
| getContentEncoding | back to summary |
|---|---|
| public String getContentEncoding() Implements org. Doc from org. Returns content encoding of the entity, if known.
| |
| getContentLength | back to summary |
|---|---|
| public long getContentLength() Implements org. Doc from org. Returns length of the entity, if known.
| |
| getContentType | back to summary |
|---|---|
| public String getContentType() Implements org. Doc from org. Returns content type of the entity, if known.
| |
| getMultipart | back to summary |
|---|---|
| pack-priv AbstractMultipartFormat getMultipart() | |
| getTrailerNames | back to summary |
|---|---|
| public Set Implements org. Doc from org. Preliminary declaration of trailing headers.
| |
| getTrailers | back to summary |
|---|---|
| public Supplier Implements org. Doc from org. Returns supplier of message trailers - headers sent after message body.
May return
| |
| isChunked | back to summary |
|---|---|
| public boolean isChunked() Implements org. Doc from org. Returns chunked transfer hint for this entity. The behavior of wrapping entities is implementation dependent, but should respect the primary purpose.
| |
| isRepeatable | back to summary |
|---|---|
| public boolean isRepeatable() Implements org. Doc from org. Tells if the entity is capable of producing its data more than once. A repeatable entity's getContent() and writeTo(OutputStream) methods can be called more than once whereas a non-repeatable entity's can not.
| |
| isStreaming | back to summary |
|---|---|
| public boolean isStreaming() Implements org. Doc from org. Tells whether this entity depends on an underlying stream.
Streamed entities that read data directly from the socket should
return
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(final OutputStream outStream) throws IOException Implements org. Doc from org. Writes the entity content out to the output stream. Important Note Please note all entity implementations must ensure that all allocated resources are properly deallocated when this method returns.
| |