Home
last modified time | relevance | path

Searched refs:Interceptor (Results 1 – 25 of 50) sorted by relevance

12

/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DInterceptors.java11 private final Map<MethodRef, Interceptor> interceptors = new HashMap<>();
13 public Interceptors(Interceptor... interceptors) { in Interceptors()
17 public Interceptors(Collection<Interceptor> interceptorList) { in Interceptors()
18 for (Interceptor interceptor : interceptorList) { in Interceptors()
30Interceptor interceptor = findInterceptor(methodSignature.className, methodSignature.methodName); in getInterceptionHandler()
36 return Interceptor.returnDefaultValue(methodSignature); in getInterceptionHandler()
39 public Interceptor findInterceptor(String className, String methodName) { in findInterceptor()
40 Interceptor mh = interceptors.get(new MethodRef(className, methodName)); in findInterceptor()
DInterceptor.java9 public abstract class Interceptor { class
12 public Interceptor(MethodRef... methodRefs) { in Interceptor() method in Interceptor
DInvokeDynamicSupport.java93 Interceptor interceptor = INTERCEPTORS.findInterceptor(className, methodName); in getMethodHandle()
97 Class<Interceptor> theClass = in getMethodHandle()
98 (Class<Interceptor>) ReflectionHelpers.loadClass( in getMethodHandle()
100 interceptor.getClass().getName()).asSubclass(Interceptor.class); in getMethodHandle()
/external/guice/extensions/struts2/src/com/google/inject/struts2/
DStruts2Factory.java28 import com.opensymphony.xwork2.interceptor.Interceptor;
153 public Interceptor buildInterceptor(InterceptorConfig interceptorConfig, Map interceptorRefParams) in buildInterceptor()
156 Class<? extends Interceptor> interceptorClass; in buildInterceptor()
159 (Class<? extends Interceptor>) getClassInstance(interceptorConfig.getClassName()); in buildInterceptor()
177 private Interceptor superBuildInterceptor( in superBuildInterceptor()
183 private class ProvidedInterceptor implements Interceptor {
189 private final Class<? extends Interceptor> interceptorClass;
190 private Interceptor delegate;
195 Class<? extends Interceptor> interceptorClass) { in ProvidedInterceptor()
212 if (!Interceptor.class.isAssignableFrom(interceptorClass)) { in validate()
[all …]
DGuiceObjectFactory.java31 import com.opensymphony.xwork2.interceptor.Interceptor;
167 public Interceptor buildInterceptor(InterceptorConfig interceptorConfig, Map interceptorRefParams) in buildInterceptor()
170 Class<? extends Interceptor> interceptorClass; in buildInterceptor()
183 Interceptor superBuildInterceptor(InterceptorConfig interceptorConfig, Map interceptorRefParams) in superBuildInterceptor()
188 class ProvidedInterceptor implements Interceptor {
192 final Class<? extends Interceptor> interceptorClass;
193 Interceptor delegate;
196 InterceptorConfig config, Map params, Class<? extends Interceptor> interceptorClass) { in ProvidedInterceptor()
213 if (!Interceptor.class.isAssignableFrom(interceptorClass)) { in validate()
215 interceptorClass.getName() + " must implement " + Interceptor.class.getName() + "."); in validate()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DInterceptorTest.java68 client.interceptors().add(new Interceptor() { in applicationInterceptorsCanShortCircuitResponses()
81 Interceptor interceptor = new Interceptor() { in networkInterceptorsCannotShortCircuitResponses()
111 Interceptor interceptor = new Interceptor() { in networkInterceptorsCannotCallProceedMultipleTimes()
135 Interceptor interceptor = new Interceptor() { in networkInterceptorsCannotChangeServerAddress()
163 client.networkInterceptors().add(new Interceptor() { in networkInterceptorsHaveConnectionAccess()
182 client.networkInterceptors().add(new Interceptor() { in networkInterceptorsObserveNetworkHeaders()
216 client.networkInterceptors().add(new Interceptor() { in networkInterceptorsCanChangeRequestMethodFromGetToPost()
250 private void rewriteRequestToServer(List<Interceptor> interceptors) throws Exception { in rewriteRequestToServer()
253 interceptors.add(new Interceptor() { in rewriteRequestToServer()
286 private void rewriteResponseFromServer(List<Interceptor> interceptors) throws Exception { in rewriteResponseFromServer()
[all …]
/external/grpc-grpc/src/php/tests/unit_tests/
DInterceptorTest.php94 class ChangeMetadataInterceptor extends Grpc\Interceptor
113 class ChangeMetadataInterceptor2 extends Grpc\Interceptor
169 class ChangeRequestInterceptor extends Grpc\Interceptor
189 class StopCallInterceptor extends Grpc\Interceptor
231 … $intercept_channel = Grpc\Interceptor::intercept($this->channel, $channel_matadata_interceptor);
259 … $intercept_channel1 = Grpc\Interceptor::intercept($this->channel, $channel_matadata_interceptor);
260 …$intercept_channel2 = Grpc\Interceptor::intercept($intercept_channel1, $channel_matadata_intercept…
285 $intercept_channel3 = Grpc\Interceptor::intercept($this->channel,
315 $intercept_channel = Grpc\Interceptor::intercept($this->channel,
366 $intercept_channel = Grpc\Interceptor::intercept($this->channel,
[all …]
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/
DAndroidInterceptors.java16 import org.robolectric.internal.bytecode.Interceptor;
27 public static Collection<Interceptor> all() { in all()
40 public static class LinkedHashMapEldestInterceptor extends Interceptor {
67 public static class PolicyManagerMakeNewWindowInterceptor extends Interceptor {
103 public static class SystemTimeInterceptor extends Interceptor {
138 public static class SystemArrayCopyInterceptor extends Interceptor {
162 public static class LocaleAdjustLanguageCodeInterceptor extends Interceptor {
199 public static class SystemLogEInterceptor extends Interceptor {
230 public static class NoOpInterceptor extends Interceptor {
/external/guice/lib/
Daopalliance.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/aopalliance/ org/ ...
/external/guice/extensions/persist/lib/
Daopalliance.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/aopalliance/ org/ ...
/external/grpc-grpc/src/php/lib/Grpc/
DInterceptor.php28 class Interceptor class
76 * @param Interceptor|Interceptor[] $interceptors interceptors to be added
/external/grpc-grpc/src/ruby/lib/grpc/generic/
Dinterceptors.rb21 class Interceptor class
35 class ClientInterceptor < Interceptor
97 class ServerInterceptor < Interceptor
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DCheckHandshake.java19 import com.squareup.okhttp.Interceptor;
30 private static final Interceptor CHECK_HANDSHAKE_INTERCEPTOR = new Interceptor() {
DRewriteResponseCacheControl.java19 import com.squareup.okhttp.Interceptor;
28 private static final Interceptor REWRITE_CACHE_CONTROL_INTERCEPTOR = new Interceptor() {
DLoggingInterceptors.java18 import com.squareup.okhttp.Interceptor;
30 client.networkInterceptors().add(new Interceptor() { in LoggingInterceptors()
DRequestBodyCompression.java19 import com.squareup.okhttp.Interceptor;
68 static class GzipRequestInterceptor implements Interceptor {
DProgress.java18 import com.squareup.okhttp.Interceptor;
49 client.networkInterceptors().add(new Interceptor() { in run()
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/Interceptors/
DServerInterceptorTest.cs85 Assert.Throws<ArgumentNullException>(() => sd.Intercept(default(Interceptor))); in CheckNullInterceptorRegistrationFails()
86 Assert.Throws<ArgumentNullException>(() => sd.Intercept(new[]{default(Interceptor)})); in CheckNullInterceptorRegistrationFails()
88 Assert.Throws<ArgumentNullException>(() => sd.Intercept(default(Interceptor[]))); in CheckNullInterceptorRegistrationFails()
91 private class ServerCallContextInterceptor : Interceptor
DClientInterceptorTest.cs99 … Assert.Throws<ArgumentNullException>(() => helper.GetChannel().Intercept(default(Interceptor))); in CheckNullInterceptorRegistrationFails()
100 …rt.Throws<ArgumentNullException>(() => helper.GetChannel().Intercept(new[]{default(Interceptor)})); in CheckNullInterceptorRegistrationFails()
102 … Assert.Throws<ArgumentNullException>(() => helper.GetChannel().Intercept(default(Interceptor[]))); in CheckNullInterceptorRegistrationFails()
133 private class CallbackInterceptor : Interceptor
173 private class ClientStreamingCountingInterceptor : Interceptor
/external/grpc-grpc/src/csharp/Grpc.Core/Interceptors/
DCallInvokerExtensions.cs43 public static CallInvoker Intercept(this CallInvoker invoker, Interceptor interceptor) in Intercept()
64 … public static CallInvoker Intercept(this CallInvoker invoker, params Interceptor[] interceptors) in Intercept()
97 private class MetadataInterceptor : Interceptor
DChannelExtensions.cs41 public static CallInvoker Intercept(this Channel channel, Interceptor interceptor) in Intercept()
62 public static CallInvoker Intercept(this Channel channel, params Interceptor[] interceptors) in Intercept()
DServerServiceDefinitionExtensions.cs43 …Definition Intercept(this ServerServiceDefinition serverServiceDefinition, Interceptor interceptor) in Intercept()
66 … Intercept(this ServerServiceDefinition serverServiceDefinition, params Interceptor[] interceptors) in Intercept()
/external/grpc-grpc/src/csharp/Grpc.Core/Internal/
DServerCallHandler.cs34 IServerCallHandler Intercept(Interceptor interceptor); in Intercept()
95 public IServerCallHandler Intercept(Interceptor interceptor) in Intercept()
158 public IServerCallHandler Intercept(Interceptor interceptor) in Intercept()
221 public IServerCallHandler Intercept(Interceptor interceptor) in Intercept()
281 public IServerCallHandler Intercept(Interceptor interceptor) in Intercept()
314 public IServerCallHandler Intercept(Interceptor interceptor) in Intercept()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCall.java204 Interceptor.Chain chain = new ApplicationInterceptorChain(0, originalRequest, forWebSocket); in getResponseWithInterceptorChain()
208 class ApplicationInterceptorChain implements Interceptor.Chain {
230 Interceptor.Chain chain = new ApplicationInterceptorChain(index + 1, request, forWebSocket); in proceed()
231 Interceptor interceptor = client.interceptors().get(index); in proceed()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DCall.java206 Interceptor.Chain chain = new ApplicationInterceptorChain(0, originalRequest, forWebSocket); in getResponseWithInterceptorChain()
210 class ApplicationInterceptorChain implements Interceptor.Chain {
232 Interceptor.Chain chain = new ApplicationInterceptorChain(index + 1, request, forWebSocket); in proceed()
233 Interceptor interceptor = client.interceptors().get(index); in proceed()

12