Package io.grpc.protobuf.services
Class ProtoReflectionService
java.lang.Object
io.grpc.protobuf.services.ProtoReflectionService
- All Implemented Interfaces:
BindableService
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/2222")
public final class ProtoReflectionService
extends Object
implements BindableService
Provides a reflection service for Protobuf services (including the reflection service itself).
Uses the deprecated v1alpha proto. New users should use ProtoReflectionServiceV1 instead.
Separately tracks mutable and immutable services. Throws an exception if either group of services contains multiple Protobuf files with declarations of the same service, method, type, or extension.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreatesServerServiceDefinition
object for current instance of service implementation.createServerCallHandler
(ServerServiceDefinition serverServiceDefinition) static BindableService
-
Constructor Details
-
ProtoReflectionService
private ProtoReflectionService()
-
-
Method Details
-
newInstance
-
bindService
Description copied from interface:BindableService
CreatesServerServiceDefinition
object for current instance of service implementation.- Specified by:
bindService
in interfaceBindableService
- Returns:
- ServerServiceDefinition object.
-
createServerCallHandler
private ServerCallHandler<ServerReflectionRequest,ServerReflectionResponse> createServerCallHandler(ServerServiceDefinition serverServiceDefinition)
-