Package io.grpc.internal
Class InternalHandlerRegistry
java.lang.Object
io.grpc.HandlerRegistry
io.grpc.internal.InternalHandlerRegistry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, ServerMethodDefinition<?, ?>> private final List<ServerServiceDefinition> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInternalHandlerRegistry(List<ServerServiceDefinition> services, Map<String, ServerMethodDefinition<?, ?>> methods) -
Method Summary
Modifier and TypeMethodDescriptionReturns the service definitions in this registry.lookupMethod(String methodName, String authority) Lookup aServerMethodDefinitionby its fully-qualified name.Methods inherited from class io.grpc.HandlerRegistry
lookupMethod
-
Field Details
-
services
-
methods
-
-
Constructor Details
-
InternalHandlerRegistry
private InternalHandlerRegistry(List<ServerServiceDefinition> services, Map<String, ServerMethodDefinition<?, ?>> methods)
-
-
Method Details
-
getServices
Returns the service definitions in this registry.- Overrides:
getServicesin classHandlerRegistry
-
lookupMethod
@Nullable public ServerMethodDefinition<?,?> lookupMethod(String methodName, @Nullable String authority) Description copied from class:HandlerRegistryLookup aServerMethodDefinitionby its fully-qualified name.- Specified by:
lookupMethodin classHandlerRegistry- Parameters:
methodName- to lookupServerMethodDefinitionfor.authority- the authority for the desired method (to do virtual hosting). Ifnullthe first matching method will be returned.- Returns:
- the resolved method or
nullif no method for that name exists.
-