@ThreadSafe public abstract class HandlerRegistry extends Object
| Constructor and Description |
|---|
HandlerRegistry() |
| Modifier and Type | Method and Description |
|---|---|
List<ServerServiceDefinition> |
getServices()
Returns the
ServerServiceDefinitions provided by the registry, or an empty list if not
supported by the implementation. |
ServerMethodDefinition<?,?> |
lookupMethod(String methodName)
Lookup a
ServerMethodDefinition by its fully-qualified name. |
abstract ServerMethodDefinition<?,?> |
lookupMethod(String methodName,
String authority)
Lookup a
ServerMethodDefinition by its fully-qualified name. |
@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/2222") public List<ServerServiceDefinition> getServices()
ServerServiceDefinitions provided by the registry, or an empty list if not
supported by the implementation.@Nullable public abstract ServerMethodDefinition<?,?> lookupMethod(String methodName, @Nullable String authority)
ServerMethodDefinition by its fully-qualified name.methodName - to lookup ServerMethodDefinition for.authority - the authority for the desired method (to do virtual hosting). If null
the first matching method will be returned.null if no method for that name exists.@Nullable public final ServerMethodDefinition<?,?> lookupMethod(String methodName)
ServerMethodDefinition by its fully-qualified name.methodName - to lookup ServerMethodDefinition for.null if no method for that name exists.