@Test public void testHTTPSViaRibbon() { Client trustSSLSockets = new Client.Default(TrustingSSLSocketFactory.get(), null); server1.useHttps(TrustingSSLSocketFactory.get("localhost"), false); server1.enqueue(new MockResponse().setBody("success!")); getConfigInstance().setProperty(serverListKey(), hostAndPort(server1.url("").url())); TestInterface api = Feign.builder().client(RibbonClient.builder().delegate(trustSSLSockets).build()) .target(TestInterface.class, "https: api.post(); assertEquals(1, server1.getRequestCount()); }
public static Builder builder() { return new Builder(); }
RibbonClient implements Client { public static Builder builder() { return new Builder(); } }
RibbonClient implements Client { public static Builder builder() { return new Builder(); } @Deprecated  RibbonClient(); @Deprecated  RibbonClient(Client delegate);   RibbonClient(Client delegate, LBClientFactory lbClientFactory); }
RibbonClient implements Client { public static Builder builder() { return new Builder(); } @Deprecated  RibbonClient(); @Deprecated  RibbonClient(Client delegate);   RibbonClient(Client delegate, LBClientFactory lbClientFactory); static RibbonClient create(); static Builder builder(); @Override Response execute(Request request, Request.Options options); }
RibbonClient implements Client { public static Builder builder() { return new Builder(); } @Deprecated  RibbonClient(); @Deprecated  RibbonClient(Client delegate);   RibbonClient(Client delegate, LBClientFactory lbClientFactory); static RibbonClient create(); static Builder builder(); @Override Response execute(Request request, Request.Options options);  }