Class ProtobufResponseConverterFunctionProvider
java.lang.Object
com.linecorp.armeria.server.protobuf.ProtobufResponseConverterFunctionProvider
- All Implemented Interfaces:
ResponseConverterFunctionProvider
@UnstableApi
public final class ProtobufResponseConverterFunctionProvider
extends Object
implements ResponseConverterFunctionProvider
Provides a
ProtobufResponseConverterFunction
to annotated services.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateResponseConverterFunction
(Type returnType) Returns aResponseConverterFunction
instance if there is a function which can convert theresponseType
, otherwise returnnull
.
-
Constructor Details
-
ProtobufResponseConverterFunctionProvider
public ProtobufResponseConverterFunctionProvider()
-
-
Method Details
-
createResponseConverterFunction
Description copied from interface:ResponseConverterFunctionProvider
Returns aResponseConverterFunction
instance if there is a function which can convert theresponseType
, otherwise returnnull
.- Specified by:
createResponseConverterFunction
in interfaceResponseConverterFunctionProvider
- Parameters:
returnType
- the returnType
of the annotated HTTP service method
-