Home
last modified time | relevance | path

Searched refs:OkHttpChannelBuilder (Results 1 – 17 of 17) sorted by relevance

/external/grpc-grpc-java/okhttp/src/test/java/io/grpc/okhttp/
DOkHttpChannelBuilderTest.java49 OkHttpChannelBuilder builder = OkHttpChannelBuilder.forAddress("original", 1234); in authorityIsReadable()
55 OkHttpChannelBuilder builder = OkHttpChannelBuilder.forAddress("original", 1234); in overrideAuthorityIsReadableForAddress()
61 OkHttpChannelBuilder builder = OkHttpChannelBuilder.forTarget("original:1234"); in overrideAuthorityIsReadableForTarget()
65 private void overrideAuthorityIsReadableHelper(OkHttpChannelBuilder builder, in overrideAuthorityIsReadableHelper()
73 OkHttpChannelBuilder builder = new OkHttpChannelBuilder("good", 1234) { in overrideAllowsInvalidAuthority()
85 OkHttpChannelBuilder builder = new OkHttpChannelBuilder("good", 1234); in failOverrideInvalidAuthority()
97 OkHttpChannelBuilder.forAddress("invalid_authority", 1234); in failInvalidAuthority()
105 OkHttpChannelBuilder.forAddress("host", 1234).connectionSpec(ConnectionSpec.CLEARTEXT); in failForUsingClearTextSpecDirectly()
110 OkHttpChannelBuilder.forAddress("host", 1234).connectionSpec(ConnectionSpec.MODERN_TLS); in allowUsingTlsConnectionSpec()
115 OkHttpChannelBuilder builder = OkHttpChannelBuilder.forAddress("host", 1234).usePlaintext(); in usePlaintext_newClientTransportAllowed()
[all …]
DOkHttpClientTransportFactoryTest.java28 return OkHttpChannelBuilder.forAddress("localhost", 0) in newClientTransportFactory()
DOkHttpChannelProviderTest.java65 assertSame(OkHttpChannelBuilder.class, provider.builderForAddress("localhost", 443).getClass()); in builderIsAOkHttpBuilder()
DOkHttpTransportTest.java39 OkHttpChannelBuilder
DOkHttpClientTransportTest.java234 OkHttpChannelBuilder.INTERNAL_DEFAULT_CONNECTION_SPEC, in testToString()
/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/
DOkHttpChannelBuilder.java61 public class OkHttpChannelBuilder extends class
62 AbstractManagedChannelImplBuilder<OkHttpChannelBuilder> {
139 public static OkHttpChannelBuilder forAddress(String host, int port) { in forAddress()
140 return new OkHttpChannelBuilder(host, port); in forAddress()
147 public static OkHttpChannelBuilder forTarget(String target) { in forTarget()
148 return new OkHttpChannelBuilder(target); in forTarget()
162 protected OkHttpChannelBuilder(String host, int port) { in OkHttpChannelBuilder() method in OkHttpChannelBuilder
166 private OkHttpChannelBuilder(String target) { in OkHttpChannelBuilder() method in OkHttpChannelBuilder
171 final OkHttpChannelBuilder setTransportTracerFactory( in setTransportTracerFactory()
183 public final OkHttpChannelBuilder transportExecutor(@Nullable Executor transportExecutor) { in transportExecutor()
[all …]
DOkHttpChannelProvider.java42 public OkHttpChannelBuilder builderForAddress(String name, int port) { in builderForAddress()
43 return OkHttpChannelBuilder.forAddress(name, port); in builderForAddress()
47 public OkHttpChannelBuilder builderForTarget(String target) { in builderForTarget()
48 return OkHttpChannelBuilder.forTarget(target); in builderForTarget()
/external/grpc-grpc-java/android/
Dproguard-rules.txt1 -keepclassmembers class io.grpc.okhttp.OkHttpChannelBuilder {
2 io.grpc.okhttp.OkHttpChannelBuilder forTarget(java.lang.String);
3 …io.grpc.okhttp.OkHttpChannelBuilder scheduledExecutorService(java.util.concurrent.ScheduledExecuto…
4 io.grpc.okhttp.OkHttpChannelBuilder sslSocketFactory(javax.net.ssl.SSLSocketFactory);
5 io.grpc.okhttp.OkHttpChannelBuilder transportExecutor(java.util.concurrent.Executor);
/external/grpc-grpc-java/android-interop-testing/app/src/main/java/io/grpc/android/integrationtest/
DTesterOkHttpChannelBuilder.java22 import io.grpc.okhttp.OkHttpChannelBuilder;
51 ((OkHttpChannelBuilder) channelBuilder).useTransportSecurity(); in build()
52 ((OkHttpChannelBuilder) channelBuilder).sslSocketFactory(getSslSocketFactory(testCa)); in build()
/external/grpc-grpc-java/interop-testing/src/test/java/io/grpc/testing/integration/
DHttp2OkHttpTest.java32 import io.grpc.okhttp.OkHttpChannelBuilder;
93 private OkHttpChannelBuilder createChannelBuilder() { in createChannelBuilder()
94 OkHttpChannelBuilder builder = OkHttpChannelBuilder.forAddress("localhost", getPort()) in createChannelBuilder()
/external/grpc-grpc-java/benchmarks/src/main/java/io/grpc/benchmarks/
DUtils.java33 import io.grpc.okhttp.OkHttpChannelBuilder;
114 private static OkHttpChannelBuilder newOkHttpClientChannel( in newOkHttpClientChannel()
117 OkHttpChannelBuilder builder = in newOkHttpClientChannel()
118 OkHttpChannelBuilder.forAddress(addr.getHostName(), addr.getPort()); in newOkHttpClientChannel()
/external/grpc-grpc-java/interop-testing/src/main/java/io/grpc/testing/integration/
DReconnectTestClient.java25 import io.grpc.okhttp.OkHttpChannelBuilder;
74 OkHttpChannelBuilder.forAddress("127.0.0.1", serverRetryPort) in runTest()
DTestServiceClient.java30 import io.grpc.okhttp.OkHttpChannelBuilder;
383 OkHttpChannelBuilder okBuilder = OkHttpChannelBuilder.forAddress(serverHost, serverPort); in createChannel()
/external/grpc-grpc-java/gae-interop-testing/gae-jdk7/src/main/java/io/grpc/testing/integration/
DOkHttpClientInteropServlet.java25 import io.grpc.okhttp.OkHttpChannelBuilder;
219 assertTrue(builder instanceof OkHttpChannelBuilder);
/external/grpc-grpc-java/benchmarks/src/jmh/java/io/grpc/benchmarks/
DTransportBenchmark.java36 import io.grpc.okhttp.OkHttpChannelBuilder;
135 channelBuilder = OkHttpChannelBuilder.forAddress("localhost", port).usePlaintext(); in setUp()
/external/grpc-grpc-java/android/src/test/java/io/grpc/android/
DAndroidChannelBuilderTest.java34 import io.grpc.okhttp.OkHttpChannelBuilder;
98 OkHttpChannelBuilder wrappedBuilder = OkHttpChannelBuilder.forTarget("target"); in fromBuilderConstructor()
/external/grpc-grpc-java/
DSECURITY.md283 NettyChannelBuilder or OkHttpChannelBuilder, respectively.