Package com.linecorp.armeria.server.grpc
Interface UnframedGrpcStatusMappingFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescription@Nullable com.linecorp.armeria.common.HttpStatusapply(com.linecorp.armeria.server.ServiceRequestContext ctx, Status status, @Nullable Throwable cause) of()Return the default mapping function which follows the mapping rules defined in upstream Google APIs code.proto.Returns a composedUnframedGrpcStatusMappingFunctionthat appliesthisfirst and the specifiedotherlater ifthisreturnsnull.
-
Method Details
-
of
Return the default mapping function which follows the mapping rules defined in upstream Google APIs code.proto. -
apply
-
orElse
Returns a composedUnframedGrpcStatusMappingFunctionthat appliesthisfirst and the specifiedotherlater ifthisreturnsnull.
-