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, setContentLength
public 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.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 © 2016–2019 The Apache Software Foundation. All rights reserved.