Class ProtobufRequestConverterFunctionProvider
java.lang.Object
com.linecorp.armeria.server.protobuf.ProtobufRequestConverterFunctionProvider
- All Implemented Interfaces:
RequestConverterFunctionProvider
@UnstableApi
public final class ProtobufRequestConverterFunctionProvider
extends Object
implements RequestConverterFunctionProvider
Provides a
ProtobufRequestConverterFunction
to annotated services.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateRequestConverterFunction
(Type requestType, RequestConverterFunction requestConverter) Returns aRequestConverterFunction
instance if there is a function which can convert therequestType
, otherwise returnnull
.
-
Constructor Details
-
ProtobufRequestConverterFunctionProvider
public ProtobufRequestConverterFunctionProvider()
-
-
Method Details
-
createRequestConverterFunction
public RequestConverterFunction createRequestConverterFunction(Type requestType, RequestConverterFunction requestConverter) Description copied from interface:RequestConverterFunctionProvider
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
.- Specified by:
createRequestConverterFunction
in interfaceRequestConverterFunctionProvider
- Parameters:
requestType
- the inputType
of the annotated HTTP service methodrequestConverter
- theRequestConverterFunction
which converts anAggregatedHttpRequest
into an object
-