@NotThreadSafe
public class JacksonableEntity
extends org.apache.http.entity.AbstractHttpEntity
Object.
The content obtained from the Object instance can
optionally be buffered in a byte array in order to make the
entity self-contained and repeatable.SerializableEntity| Constructor and Description |
|---|
JacksonableEntity(Object ser,
boolean bufferize,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Creates new instance of this class.
|
JacksonableEntity(Object ser,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
InputStream |
getContent() |
long |
getContentLength() |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
Object |
getTarget() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(OutputStream outstream) |
public JacksonableEntity(Object ser, boolean bufferize, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
ser - inputbufferize - tells whether the content should be
stored in an internal bufferIOException - in case of an I/O errorpublic JacksonableEntity(Object ser, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public InputStream getContent() throws IOException, IllegalStateException
IOExceptionIllegalStateExceptionpublic long getContentLength()
public boolean isRepeatable()
public boolean isStreaming()
public void writeTo(OutputStream outstream) throws IOException
IOExceptionpublic Object getTarget()
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2017. All rights reserved.