Package io.grpc.internal
Class ServerImplBuilder.DefaultFallbackRegistry
- java.lang.Object
-
- io.grpc.HandlerRegistry
-
- io.grpc.internal.ServerImplBuilder.DefaultFallbackRegistry
-
- Enclosing class:
- ServerImplBuilder
private static final class ServerImplBuilder.DefaultFallbackRegistry extends HandlerRegistry
-
-
Constructor Summary
Constructors Modifier Constructor Description privateDefaultFallbackRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ServerServiceDefinition>getServices()Returns theServerServiceDefinitions provided by the registry, or an empty list if not supported by the implementation.ServerMethodDefinition<?,?>lookupMethod(java.lang.String methodName, java.lang.String authority)Lookup aServerMethodDefinitionby its fully-qualified name.-
Methods inherited from class io.grpc.HandlerRegistry
lookupMethod
-
-
-
-
Method Detail
-
getServices
public java.util.List<ServerServiceDefinition> 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(java.lang.String methodName, @Nullable java.lang.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.
-
-