Package org.grpcmock.interceptors
Class RequestCaptureInterceptor
java.lang.Object
org.grpcmock.interceptors.RequestCaptureInterceptor
- All Implemented Interfaces:
io.grpc.ServerInterceptor
- Author:
- Fadelis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcallCountFor(RequestPattern<?> requestPattern) voidclear()static <ReqT> CapturedRequest<ReqT><ReqT,RespT>
io.grpc.ServerCall.Listener<ReqT>interceptCall(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata metadata, io.grpc.ServerCallHandler<ReqT, RespT> next) <ReqT> List<CapturedRequest<ReqT>>requestsFor(RequestPattern<ReqT> requestPattern)
-
Constructor Details
-
RequestCaptureInterceptor
public RequestCaptureInterceptor()
-
-
Method Details
-
requestsFor
-
callCountFor
-
clear
public void clear() -
interceptCall
public <ReqT,RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata metadata, io.grpc.ServerCallHandler<ReqT, RespT> next) - Specified by:
interceptCallin interfaceio.grpc.ServerInterceptor
-
getCapturedRequest
-