T
- The type of objects to deserialize.public interface HttpDeserializer<T>
Modifier and Type | Method and Description |
---|---|
BlockingIterable<T> |
deserialize(HttpHeaders headers,
BlockingIterable<Buffer> payload)
|
T |
deserialize(HttpHeaders headers,
Buffer payload)
Deserialize a single
Object into a T . |
Publisher<T> |
deserialize(HttpHeaders headers,
Publisher<Buffer> payload)
|
T deserialize(HttpHeaders headers, Buffer payload)
Object
into a T
.headers
- The HttpHeaders
associated with the payload
.payload
- The Object
to deserialize. The contents are assumed to be in memory, otherwise this method
may block.BlockingIterable<T> deserialize(HttpHeaders headers, BlockingIterable<Buffer> payload)
headers
- The HttpHeaders
associated with the payload
.payload
- Provides the Object
s to deserialize. The contents are assumed to be in memory, otherwise
this method may block.BlockingIterable
of type T
which is the result of the deserialization.Publisher<T> deserialize(HttpHeaders headers, Publisher<Buffer> payload)
headers
- The HttpHeaders
associated with the payload
.payload
- Provides the Object
s to deserialize.Publisher
of type T
which is the result of the deserialization.