public final class RestRequestEntity extends org.apache.http.entity.BasicHttpEntity
Constructor and Description |
---|
RestRequestEntity(Object input,
Serializer serializer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getContent() |
boolean |
isRepeatable() |
void |
writeTo(OutputStream os) |
getContentLength, isStreaming, setContent, setContentLength
public RestRequestEntity(Object input, Serializer serializer)
input
- The POJO to serialize. Can also be a Reader
or InputStream
.serializer
- The serializer to use to serialize this response.public void writeTo(OutputStream os) throws IOException
writeTo
in interface org.apache.http.HttpEntity
writeTo
in class org.apache.http.entity.BasicHttpEntity
IOException
public boolean isRepeatable()
isRepeatable
in interface org.apache.http.HttpEntity
isRepeatable
in class org.apache.http.entity.BasicHttpEntity
public InputStream getContent()
getContent
in interface org.apache.http.HttpEntity
getContent
in class org.apache.http.entity.BasicHttpEntity
Copyright © 2018 Apache. All rights reserved.