Interface RequestConverterFunctionProvider
- All Known Implementing Classes:
ProtobufRequestConverterFunctionProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
RequestConverterFunction
provider interface which creates a new
RequestConverterFunction
for converting an AggregatedHttpRequest
to an object of
the given type.-
Method Summary
Modifier and TypeMethodDescriptioncreateRequestConverterFunction
(Type requestType, RequestConverterFunction requestConverter) Returns aRequestConverterFunction
instance if there is a function which can convert therequestType
, otherwise returnnull
.
-
Method Details
-
createRequestConverterFunction
@Nullable @Nullable RequestConverterFunction createRequestConverterFunction(Type requestType, RequestConverterFunction requestConverter) Returns aRequestConverterFunction
instance if there is a function which can convert therequestType
, otherwise returnnull
. TherequestConverter
is originally configuredResponseConverterFunction
which would be used if this provider returnsnull
.- Parameters:
requestType
- the inputType
of the annotated HTTP service methodrequestConverter
- theRequestConverterFunction
which converts anAggregatedHttpRequest
into an object
-