Home
last modified time | relevance | path

Searched refs:ClientInterceptor (Results 1 – 25 of 35) sorted by relevance

12

/external/grpc-grpc-java/core/src/test/java/io/grpc/
DClientInterceptorsTest.java75 ClientInterceptors.intercept(null, Arrays.<ClientInterceptor>asList()); in npeForNullChannel()
80 ClientInterceptors.intercept(channel, (List<ClientInterceptor>) null); in npeForNullInterceptorList()
85 ClientInterceptors.intercept(channel, (ClientInterceptor) null); in npeForNullInterceptor()
90 assertSame(channel, ClientInterceptors.intercept(channel, Arrays.<ClientInterceptor>asList())); in noop()
95 ClientInterceptor interceptor = in channelAndInterceptorCalled()
96 mock(ClientInterceptor.class, delegatesTo(new NoopInterceptor())); in channelAndInterceptorCalled()
114 ClientInterceptor interceptor = new ClientInterceptor() { in callNextTwice()
148 ClientInterceptor interceptor1 = new ClientInterceptor() { in ordered()
158 ClientInterceptor interceptor2 = new ClientInterceptor() { in ordered()
190 ClientInterceptor interceptor1 = new ClientInterceptor() { in orderedForward()
[all …]
/external/grpc-grpc-java/core/src/main/java/io/grpc/
DClientInterceptors.java44 public static Channel interceptForward(Channel channel, ClientInterceptor... interceptors) { in interceptForward()
58 List<? extends ClientInterceptor> interceptors) { in interceptForward()
59 List<? extends ClientInterceptor> copy = new ArrayList<>(interceptors); in interceptForward()
73 public static Channel intercept(Channel channel, ClientInterceptor... interceptors) { in intercept()
86 public static Channel intercept(Channel channel, List<? extends ClientInterceptor> interceptors) { in intercept()
88 for (ClientInterceptor interceptor : interceptors) { in intercept()
98 static <WReqT, WRespT> ClientInterceptor wrapClientInterceptor( in wrapClientInterceptor()
99 final ClientInterceptor interceptor, in wrapClientInterceptor()
102 return new ClientInterceptor() { in wrapClientInterceptor()
146 private final ClientInterceptor interceptor;
[all …]
DInternalClientInterceptors.java26 public static <ReqT, RespT> ClientInterceptor wrapClientInterceptor( in wrapClientInterceptor()
27 final ClientInterceptor interceptor, in wrapClientInterceptor()
DManagedChannelBuilder.java112 public abstract T intercept(List<ClientInterceptor> interceptors); in intercept()
122 public abstract T intercept(ClientInterceptor... interceptors); in intercept()
DClientInterceptor.java33 public interface ClientInterceptor { interface
DForwardingChannelBuilder.java73 public T intercept(List<ClientInterceptor> interceptors) { in intercept()
79 public T intercept(ClientInterceptor... interceptors) { in intercept()
/external/grpc-grpc-java/android-interop-testing/app/src/main/java/io/grpc/android/integrationtest/
DInteropTask.java21 import io.grpc.ClientInterceptor;
47 List<ClientInterceptor> interceptors, in InteropTask()
152 private final List<ClientInterceptor> interceptors;
154 private Tester(ManagedChannel channel, List<ClientInterceptor> interceptors) { in Tester()
165 protected ClientInterceptor[] getAdditionalInterceptors() { in getAdditionalInterceptors()
166 return interceptors.toArray(new ClientInterceptor[0]); in getAdditionalInterceptors()
DTesterActivity.java35 import io.grpc.ClientInterceptor;
132 List<ClientInterceptor> interceptors = new ArrayList<>(); in startTest()
153 private static final class SafeMethodChannelInterceptor implements ClientInterceptor {
/external/grpc-grpc-java/stub/src/main/java/io/grpc/stub/
DMetadataUtils.java24 import io.grpc.ClientInterceptor;
58 public static ClientInterceptor newAttachHeadersInterceptor(Metadata extraHeaders) { in newAttachHeadersInterceptor()
62 private static final class HeaderAttachingClientInterceptor implements ClientInterceptor {
118 public static ClientInterceptor newCaptureMetadataInterceptor( in newCaptureMetadataInterceptor()
123 private static final class MetadataCapturingClientInterceptor implements ClientInterceptor {
DAbstractStub.java24 import io.grpc.ClientInterceptor;
184 public final S withInterceptors(ClientInterceptor... interceptors) { in withInterceptors()
/external/grpc-grpc-java/services/src/main/java/io/grpc/services/
DBinaryLogProvider.java25 import io.grpc.ClientInterceptor;
49 private final ClientInterceptor binaryLogShim = new BinaryLogShim();
103 protected abstract ClientInterceptor getClientInterceptor( in getClientInterceptor()
143 private final class BinaryLogShim implements ClientInterceptor {
149 ClientInterceptor binlogInterceptor = getClientInterceptor( in interceptCall()
DBinaryLogProviderImpl.java21 import io.grpc.ClientInterceptor;
79 public ClientInterceptor getClientInterceptor( in getClientInterceptor()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DAbstractManagedChannelImplBuilder.java26 import io.grpc.ClientInterceptor;
100 private final List<ClientInterceptor> interceptors = new ArrayList<>();
215 public final T intercept(List<ClientInterceptor> interceptors) { in intercept()
221 public final T intercept(ClientInterceptor... interceptors) { in intercept()
419 final List<ClientInterceptor> getEffectiveInterceptors() { in getEffectiveInterceptors()
420 List<ClientInterceptor> effectiveInterceptors = in getEffectiveInterceptors()
DCensusTracingModule.java26 import io.grpc.ClientInterceptor;
136 ClientInterceptor getClientInterceptor() { in getClientInterceptor()
376 final class TracingClientInterceptor implements ClientInterceptor {
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DAbstractManagedChannelImplBuilderTest.java33 import io.grpc.ClientInterceptor;
61 private static final ClientInterceptor DUMMY_USER_INTERCEPTOR =
62 new ClientInterceptor() {
270 List<ClientInterceptor> effectiveInterceptors = builder.getEffectiveInterceptors(); in getEffectiveInterceptors_default()
283 List<ClientInterceptor> effectiveInterceptors = builder.getEffectiveInterceptors(); in getEffectiveInterceptors_disableStats()
294 List<ClientInterceptor> effectiveInterceptors = builder.getEffectiveInterceptors(); in getEffectiveInterceptors_disableTracing()
306 List<ClientInterceptor> effectiveInterceptors = builder.getEffectiveInterceptors(); in getEffectiveInterceptors_disableBoth()
/external/grpc-grpc-java/examples/src/main/java/io/grpc/examples/header/
DHeaderClientInterceptor.java23 import io.grpc.ClientInterceptor;
33 public class HeaderClientInterceptor implements ClientInterceptor {
DCustomHeaderClient.java20 import io.grpc.ClientInterceptor;
49 ClientInterceptor interceptor = new HeaderClientInterceptor(); in CustomHeaderClient()
/external/grpc-grpc-java/examples/src/test/java/io/grpc/examples/header/
DHeaderServerInterceptorTest.java28 import io.grpc.ClientInterceptor;
91 class SpyingClientInterceptor implements ClientInterceptor { in serverHeaderDeliveredToClient()
/external/grpc-grpc-java/android-interop-testing/app/src/androidTest/java/io/grpc/android/integrationtest/
DInteropInstrumentationTest.java29 import io.grpc.ClientInterceptor;
130 new ArrayList<ClientInterceptor>(), in runTest()
/external/grpc-grpc-java/auth/src/main/java/io/grpc/auth/
DClientAuthInterceptor.java24 import io.grpc.ClientInterceptor;
47 public final class ClientAuthInterceptor implements ClientInterceptor {
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/
DGoogleDefaultChannelBuilder.java25 import io.grpc.ClientInterceptor;
136 static final class GoogleDefaultInterceptor implements ClientInterceptor {
DAltsChannelBuilder.java24 import io.grpc.ClientInterceptor;
171 static final class FailingClientInterceptor implements ClientInterceptor {
/external/grpc-grpc-java/interop-testing/src/test/java/io/grpc/testing/integration/
DTransportCompressionTest.java27 import io.grpc.ClientInterceptor;
133 .intercept(new ClientInterceptor() {
/external/grpc-grpc/src/ruby/lib/grpc/generic/
Dinterceptors.rb35 class ClientInterceptor < Interceptor class
/external/grpc-grpc-java/examples/android/clientcache/app/src/main/java/io/grpc/clientcacheexample/
DSafeMethodCachingInterceptor.java10 import io.grpc.ClientInterceptor;
36 final class SafeMethodCachingInterceptor implements ClientInterceptor {

12