public class StreamedMultipartHttpEntity extends Object implements org.mule.runtime.http.api.domain.entity.HttpEntity
| Constructor and Description |
|---|
StreamedMultipartHttpEntity(InputStream content,
String contentType) |
StreamedMultipartHttpEntity(InputStream content,
String contentType,
Long contentLength) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
InputStream |
getContent() |
Optional<Long> |
getLength() |
Collection<org.mule.runtime.http.api.domain.entity.multipart.HttpPart> |
getParts() |
boolean |
isComposed() |
boolean |
isStreaming() |
public StreamedMultipartHttpEntity(InputStream content, String contentType)
public StreamedMultipartHttpEntity(InputStream content, String contentType, Long contentLength)
public boolean isStreaming()
isStreaming in interface org.mule.runtime.http.api.domain.entity.HttpEntitypublic boolean isComposed()
isComposed in interface org.mule.runtime.http.api.domain.entity.HttpEntitypublic InputStream getContent() throws UnsupportedOperationException
getContent in interface org.mule.runtime.http.api.domain.entity.HttpEntityUnsupportedOperationExceptionpublic byte[] getBytes()
throws UnsupportedOperationException
getBytes in interface org.mule.runtime.http.api.domain.entity.HttpEntityUnsupportedOperationExceptionpublic Collection<org.mule.runtime.http.api.domain.entity.multipart.HttpPart> getParts() throws IOException, UnsupportedOperationException
getParts in interface org.mule.runtime.http.api.domain.entity.HttpEntityIOExceptionUnsupportedOperationExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.