SerializedHttpEntity
.@Deprecated public final class RestRequestEntity extends BasicHttpEntity
chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE
Constructor and Description |
---|
RestRequestEntity(Object input,
Serializer serializer,
HttpPartSchema schema)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getContent()
Deprecated.
|
boolean |
isRepeatable()
Deprecated.
|
void |
writeTo(OutputStream os)
Deprecated.
|
getContentLength, isStreaming, setContent, setContentLength
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toString
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 HttpEntity
writeTo
in class BasicHttpEntity
IOException
public boolean isRepeatable()
isRepeatable
in interface HttpEntity
isRepeatable
in class BasicHttpEntity
public InputStream getContent()
getContent
in interface HttpEntity
getContent
in class BasicHttpEntity
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.