public class HttpEntityCursorStreamProviderBased extends Object implements org.mule.runtime.http.api.domain.entity.HttpEntity
HttpEntity based on a CursorStreamProvider.| Constructor and Description |
|---|
HttpEntityCursorStreamProviderBased(org.mule.runtime.api.streaming.bytes.CursorStreamProvider cursorStreamProvider,
OptionalLong contentLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
getBytes() |
OptionalLong |
getBytesLength() |
InputStream |
getContent() |
org.mule.runtime.api.streaming.bytes.CursorStreamProvider |
getCursorStreamProvider() |
Optional<Long> |
getLength() |
Collection<org.mule.runtime.http.api.domain.entity.multipart.HttpPart> |
getParts() |
boolean |
isComposed() |
boolean |
isStreaming() |
public HttpEntityCursorStreamProviderBased(org.mule.runtime.api.streaming.bytes.CursorStreamProvider cursorStreamProvider,
OptionalLong contentLength)
public org.mule.runtime.api.streaming.bytes.CursorStreamProvider getCursorStreamProvider()
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()
getContent in interface org.mule.runtime.http.api.domain.entity.HttpEntitypublic byte[] getBytes()
throws IOException
getBytes in interface org.mule.runtime.http.api.domain.entity.HttpEntityIOExceptionpublic Collection<org.mule.runtime.http.api.domain.entity.multipart.HttpPart> getParts()
getParts in interface org.mule.runtime.http.api.domain.entity.HttpEntitypublic Optional<Long> getLength()
getLength in interface org.mule.runtime.http.api.domain.entity.HttpEntitypublic OptionalLong getBytesLength()
getBytesLength in interface org.mule.runtime.http.api.domain.entity.HttpEntitypublic void close()
Copyright © 2023. All rights reserved.