Home
last modified time | relevance | path

Searched refs:interceptor (Results 1 – 25 of 36) sorted by relevance

12

/external/guice/core/test/com/google/inject/internal/
DProxyFactoryTest.java47 SimpleInterceptor interceptor = new SimpleInterceptor(); in testSimpleCase() local
50 aspects.add(new MethodAspect(any(), any(), interceptor)); in testSimpleCase()
58 assertTrue(interceptor.invoked); in testSimpleCase()
80 SimpleInterceptor interceptor = new SimpleInterceptor(); in testInterceptOneMethod() local
82 aspects.add(new MethodAspect(only(Bar.class), annotatedWith(Intercept.class), interceptor)); in testInterceptOneMethod()
94 assertFalse(interceptor.invoked); in testInterceptOneMethod()
98 assertFalse(interceptor.invoked); in testInterceptOneMethod()
102 assertTrue(interceptor.invoked); in testInterceptOneMethod()
133 SimpleInterceptor interceptor = new SimpleInterceptor(); in testWithConstructorArguments() local
135 aspects.add(new MethodAspect(any(), any(), interceptor)); in testWithConstructorArguments()
[all …]
/external/apache-http/src/org/apache/http/protocol/
DBasicHttpProcessor.java152 void addInterceptor(final HttpRequestInterceptor interceptor) { in addInterceptor() argument
153 addRequestInterceptor(interceptor); in addInterceptor()
157 void addInterceptor(final HttpRequestInterceptor interceptor, in addInterceptor() argument
159 addRequestInterceptor(interceptor, index); in addInterceptor()
205 void addInterceptor(final HttpResponseInterceptor interceptor) { in addInterceptor() argument
206 addResponseInterceptor(interceptor); in addInterceptor()
209 public final void addInterceptor(final HttpResponseInterceptor interceptor, in addInterceptor() argument
211 addResponseInterceptor(interceptor, index); in addInterceptor()
293 HttpRequestInterceptor interceptor = in process() local
295 interceptor.process(request, context); in process()
[all …]
/external/guice/jdk8-tests/test/com/google/inject/jdk8/
DDefaultMethodInterceptionTest.java47 private final MethodInterceptor interceptor = invocation -> { field in DefaultMethodInterceptionTest
83 interceptor); in testInterceptedDefaultMethod()
99 interceptor); in testInterceptedDefaultMethod_calledByAnotherMethod()
127 interceptor); in testInterceptedDefaultMethod_whenParentClassDefinesNonInterceptedMethod()
162 interceptor); in testInterceptedDefaultMethod_whenParentClassDefinesInterceptedMethod()
194 bindInterceptor(Matchers.subclassesOf(Baz.class), Matchers.any(), interceptor); in testInterception_ofAllMethodsOnType()
211 bindInterceptor(Matchers.subclassesOf(BazImpl.class), Matchers.any(), interceptor); in testInterception_ofAllMethodsOnType_interceptsInheritedDefaultMethod()
/external/mockito/src/org/mockito/internal/creation/jmock/
DClassImposterizer.java51 …public <T> T imposterise(final MethodInterceptor interceptor, Class<T> mockedType, Collection<Clas… in imposterise() argument
52 …return imposterise(interceptor, mockedType, ancillaryTypes.toArray(new Class[ancillaryTypes.size()… in imposterise()
55 …public <T> T imposterise(final MethodInterceptor interceptor, Class<T> mockedType, Class<?>... anc… in imposterise() argument
61 proxyInstance = createProxy(proxyClass, interceptor); in imposterise()
133 private Object createProxy(Class<?> proxyClass, final MethodInterceptor interceptor) { in createProxy() argument
135 proxy.setCallbacks(new Callback[] {interceptor, SerializableNoOp.SERIALIZABLE_INSTANCE }); in createProxy()
/external/guice/extensions/struts2/src/com/google/inject/struts2/
DStruts2Factory.java29 import com.opensymphony.xwork2.interceptor.Interceptor;
133 for (ProvidedInterceptor interceptor : interceptors) { in createInjector()
134 interceptor.validate(binder()); in createInjector()
140 for (ProvidedInterceptor interceptor : interceptors) { in createInjector()
141 interceptor.inject(); in createInjector()
DGuiceObjectFactory.java32 import com.opensymphony.xwork2.interceptor.Interceptor;
148 for (ProvidedInterceptor interceptor : interceptors) { in createInjector()
149 interceptor.validate(binder()); in createInjector()
155 for (ProvidedInterceptor interceptor : interceptors) { in createInjector()
156 interceptor.inject(); in createInjector()
/external/guice/extensions/persist/lib/
Dxwork-2.0.4.jar ... inject/util/ com/opensymphony/xwork2/interceptor/ com/opensymphony/xwork2/interceptor/annotations ...
Dhibernate-entitymanager.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/services/ org/ ...
Dhibernate3.jar ... java.lang.Object implements org.hibernate.Interceptor java.io.Serializable { public static final org ...
/external/guice/extensions/struts2/lib/
Dstruts2-core-2.2.1.jar ... struts2/static/ org/apache/struts2/interceptor/ org/apache/struts2/interceptor/validation ...
Dxwork-core-2.2.1.jar ... abstract void addPreResultListener (com.opensymphony.xwork2.interceptor.PreResultListener) public abstract java.lang.String ...
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DInterceptorTest.java81 Interceptor interceptor = new Interceptor() { in networkInterceptorsCannotShortCircuitResponses() local
92 client.networkInterceptors().add(interceptor); in networkInterceptorsCannotShortCircuitResponses()
102 assertEquals("network interceptor " + interceptor + " must call proceed() exactly once", in networkInterceptorsCannotShortCircuitResponses()
111 Interceptor interceptor = new Interceptor() { in networkInterceptorsCannotCallProceedMultipleTimes() local
117 client.networkInterceptors().add(interceptor); in networkInterceptorsCannotCallProceedMultipleTimes()
127 assertEquals("network interceptor " + interceptor + " must call proceed() exactly once", in networkInterceptorsCannotCallProceedMultipleTimes()
135 Interceptor interceptor = new Interceptor() { in networkInterceptorsCannotChangeServerAddress() local
145 client.networkInterceptors().add(interceptor); in networkInterceptorsCannotChangeServerAddress()
155 assertEquals("network interceptor " + interceptor + " must retain the same host and port", in networkInterceptorsCannotChangeServerAddress()
DURLConnectionTest.java3187 Interceptor interceptor = new Interceptor() {
3192 client.client().interceptors().add(interceptor);
3193 client.client().networkInterceptors().add(interceptor);
/external/testng/src/test/java/test/listeners/
DListenerTest.java115 MyMethodInterceptor interceptor = new MyMethodInterceptor(); in methodInterceptorShouldBeRunOnce() local
116 tng.addListener(interceptor); in methodInterceptorShouldBeRunOnce()
118 Assert.assertEquals(interceptor.getCount(), 1); in methodInterceptorShouldBeRunOnce()
/external/guice/core/test/com/google/inject/
DMethodInterceptionTest.java320 CountingInterceptor interceptor = new CountingInterceptor(); in testDeDuplicateInterceptors()
321 bindInterceptor(Matchers.any(), Matchers.any(), interceptor); in testDeDuplicateInterceptors()
322 bindInterceptor(Matchers.any(), Matchers.any(), interceptor); in testDeDuplicateInterceptors()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_interceptors_format.inc328 Report("WARNING: unexpected format specifier in scanf interceptor: "
471 " in printf interceptor: %d\n", size); \
486 " in printf interceptor: %d\n", size); \
525 "interceptor: %.*s\n", dir.end - dir.begin, dir.begin);
Dsanitizer_common_syscalls.inc13 // This file should be included into the tool's interceptor file,
2327 // Note that this is different from the interceptor in
Dsanitizer_common_interceptors.inc13 // This file should be included into the tool's interceptor file,
1239 // Although request is unsigned long, the rest of the interceptor uses it
2806 // Handle it as part of the interceptor.
4140 // There's no __getdelim() on FreeBSD so we supply the getdelim() interceptor
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DHttpEngine.java867 Interceptor interceptor = client.networkInterceptors().get(index); in proceed() local
868 Response interceptedResponse = interceptor.intercept(chain); in proceed()
872 throw new IllegalStateException("network interceptor " + interceptor in proceed()
/external/robolectric/v1/lib/main/
Dhttpcore-4.0.1.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/v8/src/
Dobjects.cc4006 Handle<InterceptorInfo> interceptor(it->GetInterceptor()); in SetPropertyWithInterceptor() local
4007 if (interceptor->setter()->IsUndefined()) return Just(false); in SetPropertyWithInterceptor()
4011 PropertyCallbackArguments args(isolate, interceptor->data(), in SetPropertyWithInterceptor()
4017 v8::ToCData<v8::IndexedPropertySetterCallback>(interceptor->setter()); in SetPropertyWithInterceptor()
4025 if (name->IsSymbol() && !interceptor->can_intercept_symbols()) { in SetPropertyWithInterceptor()
4031 interceptor->setter()); in SetPropertyWithInterceptor()
5388 Handle<InterceptorInfo> interceptor(it->GetInterceptor()); in GetPropertyAttributesWithInterceptor() local
5390 !interceptor->can_intercept_symbols()) { in GetPropertyAttributesWithInterceptor()
5393 PropertyCallbackArguments args(isolate, interceptor->data(), in GetPropertyAttributesWithInterceptor()
5395 if (!interceptor->query()->IsUndefined()) { in GetPropertyAttributesWithInterceptor()
[all …]
/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/
DFactoryProvider2Test.java756 final org.aopalliance.intercept.MethodInterceptor interceptor in testMethodInterceptorsOnAssistedTypes() local
768 bindInterceptor(Matchers.any(), Matchers.any(), interceptor); in testMethodInterceptorsOnAssistedTypes()
/external/v8/test/cctest/
Dtest-api-interceptors.cc3704 auto interceptor = in THREADED_TEST() local
3707 ->Set(context.local(), v8_str("obj"), interceptor) in THREADED_TEST()
3735 auto interceptor = in THREADED_TEST() local
3738 ->Set(context.local(), v8_str("obj"), interceptor) in THREADED_TEST()
3766 auto interceptor = in THREADED_TEST() local
3769 ->Set(context.local(), v8_str("obj"), interceptor) in THREADED_TEST()
/external/okhttp/
DCHANGELOG.md138 * Fix: When a network interceptor mutates a request, that change is now
/external/dexmaker/lib/
Dmockito-core-1.9.1-SNAPSHOT.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/mockito/ org/ ...

12