Package io.servicetalk.http.api
Interface HttpSerializationProvider
Deprecated.
A provider of
HttpSerializer
s and HttpDeserializer
s.-
Method Summary
Modifier and TypeMethodDescription<T> HttpDeserializer<T>
deserializerFor
(TypeHolder<T> type) Deprecated.<T> HttpDeserializer<T>
deserializerFor
(Class<T> type) Deprecated.<T> HttpSerializer<T>
serializerFor
(TypeHolder<T> type) Deprecated.<T> HttpSerializer<T>
serializerFor
(TypeHolder<T> type, IntUnaryOperator bytesEstimator) Deprecated.<T> HttpSerializer<T>
serializerFor
(Class<T> type) Deprecated.<T> HttpSerializer<T>
serializerFor
(Class<T> type, IntUnaryOperator bytesEstimator) Deprecated.
-
Method Details
-
serializerFor
Deprecated.- Type Parameters:
T
- The type of object to serialize.- Parameters:
type
- TheClass
type that the returnedHttpSerializer
can serialize.- Returns:
- a
HttpSerializer
for aClass
of typeHttpSerializationProvider
.
-
serializerFor
Deprecated.- Type Parameters:
T
- The type of object to serialize.- Parameters:
type
- TheClass
type that the returnedHttpSerializer
can serialize.bytesEstimator
- AnIntUnaryOperator
that given the last serialized size in bytes, estimates the size of the next object to be serialized in bytes.- Returns:
- a
HttpSerializer
for aClass
of typeHttpSerializationProvider
.
-
serializerFor
Deprecated.- Type Parameters:
T
- The type of object to serialize.- Parameters:
type
- TheTypeHolder
type that the returnedHttpSerializer
can serialize.- Returns:
- a
HttpSerializer
for aTypeHolder
of typeHttpSerializationProvider
.
-
serializerFor
Deprecated.- Type Parameters:
T
- The type of object to serialize.- Parameters:
type
- TheTypeHolder
type that the returnedHttpSerializer
can serialize.bytesEstimator
- AnIntUnaryOperator
that given the last serialized size in bytes, estimates the size of the next object to be serialized in bytes.- Returns:
- a
HttpSerializer
for aTypeHolder
of typeHttpSerializationProvider
.
-
deserializerFor
Deprecated.- Type Parameters:
T
- The type of object to serialize.- Parameters:
type
- TheClass
type that the return value will serialize.- Returns:
- a
HttpDeserializer
for aClass
of typeHttpSerializationProvider
.
-
deserializerFor
Deprecated.- Type Parameters:
T
- The type of object to serialize.- Parameters:
type
- TheTypeHolder
type that the return value will serialize.- Returns:
- a
HttpDeserializer
for aTypeHolder
of typeHttpSerializationProvider
.
-
HttpSerializers
,HttpSerializer2
,HttpDeserializer2
,HttpStreamingSerializer
, andHttpStreamingDeserializer
.