public final class RestRequestEntity extends org.apache.http.entity.BasicHttpEntity
| Constructor and Description |
|---|
RestRequestEntity(Object input,
Serializer serializer,
HttpPartSchema schema)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContent() |
boolean |
isRepeatable() |
void |
writeTo(OutputStream os) |
getContentLength, isStreaming, setContent, setContentLengthpublic RestRequestEntity(Object input, Serializer serializer, HttpPartSchema schema)
input - The POJO to serialize. Can also be a Reader or InputStream.serializer - The serializer to use to serialize this response.schema - The optional schema information about the serialized part.public void writeTo(OutputStream os) throws IOException
writeTo in interface org.apache.http.HttpEntitywriteTo in class org.apache.http.entity.BasicHttpEntityIOExceptionpublic boolean isRepeatable()
isRepeatable in interface org.apache.http.HttpEntityisRepeatable in class org.apache.http.entity.BasicHttpEntitypublic InputStream getContent()
getContent in interface org.apache.http.HttpEntitygetContent in class org.apache.http.entity.BasicHttpEntityCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.