public class ByteArrayHttpEntity extends Object implements HttpEntity
| Constructor and Description |
|---|
ByteArrayHttpEntity(byte[] content) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Provides the entity's content as bytes.
|
InputStream |
getContent()
Provides the entity's content as a stream.
|
Collection<HttpPart> |
getParts()
Provides the entity's content parts.
|
boolean |
isComposed()
Tells whether or not this entity is composed of several parts, in which case they should be available through
HttpEntity.getParts(). |
boolean |
isStreaming()
Tells whether this entity's content is stream based.
|
public boolean isStreaming()
HttpEntityisStreaming in interface HttpEntitytrue if content is streamed, false otherwiseHttpEntity.getContent()public boolean isComposed()
HttpEntityHttpEntity.getParts().isComposed in interface HttpEntitytrue if there are several content parts, false otherwisepublic InputStream getContent()
HttpEntitygetContent in interface HttpEntityInputStream representing this entity's content or null if such representation is not possiblepublic byte[] getBytes()
HttpEntitygetBytes in interface HttpEntitynull if such representation is not possiblepublic Collection<HttpPart> getParts()
HttpEntitygetParts in interface HttpEntityHttpParts representing this entity's content parts, if presentHttpEntity.isComposed()Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.