ServerInterceptors.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private static class | ServerInterceptors.KnownLengthBufferedInputStream
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ServerServiceDefinition | Returns: a wrapped version ofserviceDef with the interceptors applied.the service definition for which to intercept all its methods. serviceDef, ServerInterceptor... array of interceptors to apply to the service. interceptors)Create a new |
| public static ServerServiceDefinition | |
| public static ServerServiceDefinition | Returns: a wrapped version ofserviceDef with the interceptors applied.the service definition for which to intercept all its methods. serviceDef, List<? extends ServerInterceptor> list of interceptors to apply to the service. interceptors)Create a new |
| public static ServerServiceDefinition | |
| public static ServerServiceDefinition | Returns: a wrapped version ofserviceDef with the interceptors applied.the service definition for which to intercept all its methods. serviceDef, ServerInterceptor... array of interceptors to apply to the service. interceptors)Create a new |
| public static ServerServiceDefinition | |
| public static ServerServiceDefinition | Returns: a wrapped version ofserviceDef with the interceptors applied.the service definition for which to intercept all its methods. serviceDef, List<? extends ServerInterceptor> list of interceptors to apply to the service. interceptors)Create a new |
| public static ServerServiceDefinition | |
| public static ServerServiceDefinition | Returns: a wrapped version ofserviceDef with the InputStream conversion applied.the service definition to convert messages to InputStream serviceDef)Create a new |
| public static <T> ServerServiceDefinition | Returns: a wrapped version ofserviceDef with the T conversion applied.the service definition to convert messages to T serviceDef, final MethodDescriptor.Create a new |
| public static < the request payload type ReqT, the response payload type. RespT> ServerServiceDefinition | Returns: a wrapped version ofserviceDef with the ReqT and RespT conversion applied.the sevice definition to add request and response marshallers to. serviceDef, final MethodDescriptor.request marshaller requestMarshaller,response marshaller responseMarshallerCreate a new |
| private static <ReqT, RespT> void | wrapAndAddMethod(ServerServiceDefinition.
|
| private static <OReqT, ORespT, WReqT, WRespT> ServerCallHandler | wrapHandler(final ServerCallHandler<OReqT, ORespT> originalHandler, final MethodDescriptor<OReqT, ORespT> originalMethod, final MethodDescriptor<WReqT, WRespT> wrappedMethod)
|
| pack-priv static <OReqT, ORespT, WReqT, WRespT> ServerMethodDefinition | wrapMethod(final ServerMethodDefinition<OReqT, ORespT> definition, final MethodDescriptor<WReqT, WRespT> wrappedMethod)
|
| ServerInterceptors | back to summary |
|---|---|
| private ServerInterceptors() | |
| intercept | back to summary |
|---|---|
| public static ServerServiceDefinition intercept(ServerServiceDefinition serviceDef, ServerInterceptor... interceptors) Create a new
| |
| intercept | back to summary |
|---|---|
| public static ServerServiceDefinition intercept(BindableService bindableService, ServerInterceptor... interceptors) | |
| intercept | back to summary |
|---|---|
| public static ServerServiceDefinition intercept(ServerServiceDefinition serviceDef, List<? extends ServerInterceptor> interceptors) Create a new
| |
| intercept | back to summary |
|---|---|
| public static ServerServiceDefinition intercept(BindableService bindableService, List<? extends ServerInterceptor> interceptors) | |
| interceptForward | back to summary |
|---|---|
| public static ServerServiceDefinition interceptForward(ServerServiceDefinition serviceDef, ServerInterceptor... interceptors) Create a new
| |
| interceptForward | back to summary |
|---|---|
| public static ServerServiceDefinition interceptForward(BindableService bindableService, ServerInterceptor... interceptors) | |
| interceptForward | back to summary |
|---|---|
| public static ServerServiceDefinition interceptForward(ServerServiceDefinition serviceDef, List<? extends ServerInterceptor> interceptors) Create a new
| |
| interceptForward | back to summary |
|---|---|
| public static ServerServiceDefinition interceptForward(BindableService bindableService, List<? extends ServerInterceptor> interceptors) | |
| useInputStreamMessages | back to summary |
|---|---|
| public static ServerServiceDefinition useInputStreamMessages(final ServerServiceDefinition serviceDef) Create a new
| |
| useMarshalledMessages | back to summary |
|---|---|
| public static <T> ServerServiceDefinition useMarshalledMessages(final ServerServiceDefinition serviceDef, final MethodDescriptor. Create a new
| |
| useMarshalledMessages | back to summary |
|---|---|
| public static <ReqT, RespT> ServerServiceDefinition useMarshalledMessages(final ServerServiceDefinition serviceDef, final MethodDescriptor. Create a new
| |
| wrapAndAddMethod | back to summary |
|---|---|
| private static <ReqT, RespT> void wrapAndAddMethod(ServerServiceDefinition. | |
| wrapHandler | back to summary |
|---|---|
| private static <OReqT, ORespT, WReqT, WRespT> ServerCallHandler | |
| wrapMethod | back to summary |
|---|---|
| pack-priv static <OReqT, ORespT, WReqT, WRespT> ServerMethodDefinition | |
| Modifier and Type | Field and Description |
|---|---|
| private final ServerCallHandler | |
| private final ServerInterceptor |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <ReqT, RespT> ServerInterceptors. | |
| public ServerCall. | startCall(ServerCall<ReqT, RespT>
object for responding to the remote client. call, Metadata request headers received from the client but open to modification by an owner headers)Implements io. |
| callHandler | back to summary |
|---|---|
| private final ServerCallHandler<ReqT, RespT> callHandler | |
| interceptor | back to summary |
|---|---|
| private final ServerInterceptor interceptor | |
| InterceptCallHandler | back to summary |
|---|---|
| private InterceptCallHandler(ServerInterceptor interceptor, ServerCallHandler<ReqT, RespT> callHandler) | |
| create | back to summary |
|---|---|
| public static <ReqT, RespT> ServerInterceptors. | |
| startCall | back to summary |
|---|---|
| public ServerCall. Implements io. Doc from io. Starts asynchronous processing of an incoming call. Callers of this method transfer their ownership of the non-thread-safe Ownership also includes the responsibility to eventually close Returns a non-
| |
BufferedInputStream that also implements KnownLength.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| KnownLengthBufferedInputStream | back to summary |
|---|---|
| pack-priv KnownLengthBufferedInputStream(InputStream in) | |