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 private
DefaultFallbackRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ServerServiceDefinition>
getServices()
Returns theServerServiceDefinition
s 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 aServerMethodDefinition
by 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:HandlerRegistry
Returns theServerServiceDefinition
s provided by the registry, or an empty list if not supported by the implementation.- Overrides:
getServices
in classHandlerRegistry
-
lookupMethod
@Nullable public ServerMethodDefinition<?,?> lookupMethod(java.lang.String methodName, @Nullable java.lang.String authority)
Description copied from class:HandlerRegistry
Lookup aServerMethodDefinition
by its fully-qualified name.- Specified by:
lookupMethod
in classHandlerRegistry
- Parameters:
methodName
- to lookupServerMethodDefinition
for.authority
- the authority for the desired method (to do virtual hosting). Ifnull
the first matching method will be returned.- Returns:
- the resolved method or
null
if no method for that name exists.
-
-