@ThreadSafe
public abstract class HandlerRegistry
extends java.lang.Object
Constructor | Description |
---|---|
HandlerRegistry() |
Modifier and Type | Method | Description |
---|---|---|
java.util.List<ServerServiceDefinition> |
getServices() |
Returns the
ServerServiceDefinition s provided by the registry, or an empty list if not
supported by the implementation. |
ServerMethodDefinition<?,?> |
lookupMethod(java.lang.String methodName) |
Lookup a
ServerMethodDefinition by its fully-qualified name. |
abstract ServerMethodDefinition<?,?> |
lookupMethod(java.lang.String methodName,
java.lang.String authority) |
Lookup a
ServerMethodDefinition by its fully-qualified name. |
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/2222") public java.util.List<ServerServiceDefinition> getServices()
ServerServiceDefinition
s provided by the registry, or an empty list if not
supported by the implementation.@Nullable public abstract ServerMethodDefinition<?,?> lookupMethod(java.lang.String methodName, @Nullable java.lang.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(java.lang.String methodName)
ServerMethodDefinition
by its fully-qualified name.methodName
- to lookup ServerMethodDefinition
for.null
if no method for that name exists.