Package io.grpc.internal
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 theServerServiceDefinition
s provided by the registry, or an empty list if not supported by the implementation.lookupMethod
(String methodName, String authority) Lookup aServerMethodDefinition
by its fully-qualified name.Methods inherited from class io.grpc.HandlerRegistry
lookupMethod
-
Constructor Details
-
DefaultFallbackRegistry
private DefaultFallbackRegistry()
-
-
Method Details
-
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(String methodName, @Nullable 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.
-