Modifier and Type | Method and Description |
---|---|
ServerServiceDefinition |
BindableService.bindService()
Creates
ServerServiceDefinition object for current instance of service implementation. |
ServerServiceDefinition |
ServerServiceDefinition.Builder.build()
Construct new ServerServiceDefinition.
|
static ServerServiceDefinition |
ServerInterceptors.intercept(BindableService bindableService,
List<? extends ServerInterceptor> interceptors) |
static ServerServiceDefinition |
ServerInterceptors.intercept(BindableService bindableService,
ServerInterceptor... interceptors) |
static ServerServiceDefinition |
ServerInterceptors.intercept(ServerServiceDefinition serviceDef,
List<? extends ServerInterceptor> interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
static ServerServiceDefinition |
ServerInterceptors.intercept(ServerServiceDefinition serviceDef,
ServerInterceptor... interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(BindableService bindableService,
List<? extends ServerInterceptor> interceptors) |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(BindableService bindableService,
ServerInterceptor... interceptors) |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(ServerServiceDefinition serviceDef,
List<? extends ServerInterceptor> interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(ServerServiceDefinition serviceDef,
ServerInterceptor... interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
static ServerServiceDefinition |
ServerInterceptors.useInputStreamMessages(ServerServiceDefinition serviceDef)
Create a new
ServerServiceDefinition whose MethodDescriptor serializes to
and from InputStream for all methods. |
static <T> ServerServiceDefinition |
ServerInterceptors.useMarshalledMessages(ServerServiceDefinition serviceDef,
MethodDescriptor.Marshaller<T> marshaller)
Create a new
ServerServiceDefinition whose MethodDescriptor serializes to
and from T for all methods. |
Modifier and Type | Method and Description |
---|---|
List<ServerServiceDefinition> |
Server.getImmutableServices()
Returns immutable services registered with the server, or an empty list if not supported by the
implementation.
|
List<ServerServiceDefinition> |
Server.getMutableServices()
Returns mutable services registered with the server, or an empty list if not supported by the
implementation.
|
List<ServerServiceDefinition> |
Server.getServices()
Returns all services registered with the server, or an empty list if not supported by the
implementation.
|
List<ServerServiceDefinition> |
HandlerRegistry.getServices()
Returns the
ServerServiceDefinition s provided by the registry, or an empty list if not
supported by the implementation. |
Modifier and Type | Method and Description |
---|---|
T |
ForwardingServerBuilder.addService(ServerServiceDefinition service) |
abstract T |
ServerBuilder.addService(ServerServiceDefinition service)
Adds a service implementation to the handler registry.
|
static ServerServiceDefinition |
ServerInterceptors.intercept(ServerServiceDefinition serviceDef,
List<? extends ServerInterceptor> interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
static ServerServiceDefinition |
ServerInterceptors.intercept(ServerServiceDefinition serviceDef,
ServerInterceptor... interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(ServerServiceDefinition serviceDef,
List<? extends ServerInterceptor> interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(ServerServiceDefinition serviceDef,
ServerInterceptor... interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
static ServerServiceDefinition |
ServerInterceptors.useInputStreamMessages(ServerServiceDefinition serviceDef)
Create a new
ServerServiceDefinition whose MethodDescriptor serializes to
and from InputStream for all methods. |
static <T> ServerServiceDefinition |
ServerInterceptors.useMarshalledMessages(ServerServiceDefinition serviceDef,
MethodDescriptor.Marshaller<T> marshaller)
Create a new
ServerServiceDefinition whose MethodDescriptor serializes to
and from T for all methods. |
Modifier and Type | Method and Description |
---|---|
T |
ServerBuilder.addServices(List<ServerServiceDefinition> services)
Adds a list of service implementations to the handler registry together.
|