Class ServerImplBuilder.DefaultFallbackRegistry
java.lang.Object
io.grpc.HandlerRegistry
io.grpc.internal.ServerImplBuilder.DefaultFallbackRegistry
- Enclosing class:
ServerImplBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theServerServiceDefinitions provided by the registry, or an empty list if not supported by the implementation.lookupMethod(String methodName, String authority) Lookup aServerMethodDefinitionby its fully-qualified name.Methods inherited from class HandlerRegistry
lookupMethod
-
Constructor Details
-
DefaultFallbackRegistry
private DefaultFallbackRegistry()
-
-
Method Details
-
getServices
Description copied from class:HandlerRegistryReturns theServerServiceDefinitions provided by the registry, or an empty list if not supported by the implementation.- 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.
-