Modifier and Type | Method | 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,
ServerInterceptor... interceptors) |
|
static ServerServiceDefinition |
ServerInterceptors.intercept(BindableService bindableService,
java.util.List<? extends ServerInterceptor> interceptors) |
|
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.intercept(ServerServiceDefinition serviceDef,
java.util.List<? extends ServerInterceptor> interceptors) |
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(BindableService bindableService,
ServerInterceptor... interceptors) |
|
static ServerServiceDefinition |
ServerInterceptors.interceptForward(BindableService bindableService,
java.util.List<? extends ServerInterceptor> interceptors) |
|
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.interceptForward(ServerServiceDefinition serviceDef,
java.util.List<? extends 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 | Description |
---|---|---|
java.util.List<ServerServiceDefinition> |
Server.getImmutableServices() |
Returns immutable services registered with the server, or an empty list if not supported by the
implementation.
|
java.util.List<ServerServiceDefinition> |
Server.getMutableServices() |
Returns mutable services registered with the server, or an empty list if not supported by the
implementation.
|
java.util.List<ServerServiceDefinition> |
HandlerRegistry.getServices() |
Returns the
ServerServiceDefinition s provided by the registry, or an empty list if not
supported by the implementation. |
java.util.List<ServerServiceDefinition> |
Server.getServices() |
Returns all services registered with the server, or an empty list if not supported by the
implementation.
|
Modifier and Type | Method | Description |
---|---|---|
abstract T |
ServerBuilder.addService(ServerServiceDefinition service) |
Adds a service implementation to the handler registry.
|
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.intercept(ServerServiceDefinition serviceDef,
java.util.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.interceptForward(ServerServiceDefinition serviceDef,
java.util.List<? extends 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. |