@Override protected Module createConnectionModule() { return new OkHttpCommandExecutorServiceModule(); }
@Override protected Module createConnectionModule() { return new OkHttpCommandExecutorServiceModule(); }
@Override protected Iterable<Module> setupModules() { ImmutableSet.Builder<Module> modules = ImmutableSet.builder(); modules.add(new OkHttpCommandExecutorServiceModule()); modules.add(new SLF4JLoggingModule()); return modules.build(); }
@Override protected void configure() { install(new OkHttpCommandExecutorServiceModule()); bind(OkHttpClientSupplier.class).toInstance(new OkHttpClientSupplier() { @Override public OkHttpClient get() { OkHttpClient client = new OkHttpClient(); client.setConnectionSpecs(connectionSpecs); return client; } }); } }
/** * This configures SSL certificate authentication when the Docker daemon is set to use an encrypted TCP socket */ @Override protected void configure() { super.configure(); install(Modules.override(new OkHttpCommandExecutorServiceModule()).with(new AbstractModule() { @Override protected void configure() { bind(new TypeLiteral<Supplier<SSLContext>>() {}).annotatedWith(Names.named("untrusted")).to(DockerUntrustedSSLContextSupplier.class); } })); bind(OkHttpClientSupplier.class).to(DockerOkHttpClientSupplier.class); } }
/** * This configures SSL certificate authentication when the Docker daemon is set to use an encrypted TCP socket */ @Override protected void configure() { super.configure(); install(Modules.override(new OkHttpCommandExecutorServiceModule()).with(new AbstractModule() { @Override protected void configure() { bind(new TypeLiteral<Supplier<SSLContext>>() {}).annotatedWith(Names.named("untrusted")).to(DockerUntrustedSSLContextSupplier.class); } })); bind(OkHttpClientSupplier.class).to(DockerOkHttpClientSupplier.class); } }
/** * This configures SSL certificate authentication when the Docker daemon is set to use an encrypted TCP socket */ @Override protected void configure() { super.configure(); install(Modules.override(new OkHttpCommandExecutorServiceModule()).with(new AbstractModule() { @Override protected void configure() { bind(new TypeLiteral<Supplier<SSLContext>>() {}).annotatedWith(Names.named("untrusted")).to(DockerUntrustedSSLContextSupplier.class); } })); bind(OkHttpClientSupplier.class).to(DockerOkHttpClientSupplier.class); } }
protected Set<Module> modules() { ImmutableSet.Builder<Module> modules = ImmutableSet.builder(); modules.add(new ExecutorServiceModule(newDirectExecutorService())); modules.add(new OkHttpCommandExecutorServiceModule()); modules.add(new SLF4JLoggingModule()); return modules.build(); }
/** * This configures SSL certificate authentication when the Docker daemon is set to use an encrypted TCP socket */ @Override protected void configure() { super.configure(); install(Modules.override(new OkHttpCommandExecutorServiceModule()).with(new AbstractModule() { @Override protected void configure() { bind(new TypeLiteral<Supplier<SSLContext>>() {}).annotatedWith(Names.named("untrusted")).to(DockerUntrustedSSLContextSupplier.class); } })); bind(OkHttpClientSupplier.class).to(DockerOkHttpClientSupplier.class); } }