@Test public void testConnect() throws Exception { final Host host = new Host(new DAVSSLProtocol(), "svn.cyberduck.io"); final DAVSession session = new DAVSession(host, new CertificateStoreX509TrustManager(new DisabledCertificateTrustCallback(), new DefaultTrustManagerHostnameCallback(host), new DefaultCertificateStore()), new CertificateStoreX509KeyManager(new DisabledCertificateIdentityCallback(), host, new DefaultCertificateStore())); assertNotNull(session.open(Proxy.DIRECT, new DisabledHostKeyCallback(), new DisabledLoginCallback())); assertTrue(session.isConnected()); assertNotNull(session.getClient()); session.login(Proxy.DIRECT, new DisabledLoginCallback(), new DisabledCancelCallback()); final AttributedList<Path> list = new DAVListService(session).list(new Path("/", EnumSet.of(Path.Type.directory, Path.Type.volume)), new DisabledListProgressListener()); assertNotNull(list.get(new Path("/trunk", EnumSet.of(Path.Type.directory)))); assertNotNull(list.get(new Path("/branches", EnumSet.of(Path.Type.directory)))); assertNotNull(list.get(new Path("/tags", EnumSet.of(Path.Type.directory)))); assertTrue(session.isConnected()); session.close(); assertFalse(session.isConnected()); }
@Override public DAVClient connect(final Proxy proxy, final HostKeyCallback key, final LoginCallback prompt) throws BackgroundException { final HttpClientBuilder pool = builder.build(proxy, this, prompt); pool.setRedirectStrategy(new DAVRedirectStrategy(redirect)); return new DAVClient(new HostUrlProvider().withUsername(false).get(host), pool); }
DAVSession extends HttpSession<DAVClient> { @Override public DAVClient connect(final Proxy proxy, final HostKeyCallback key, final LoginCallback prompt) throws BackgroundException { final HttpClientBuilder pool = builder.build(proxy, this, prompt); pool.setRedirectStrategy(new DAVRedirectStrategy(redirect)); return new DAVClient(new HostUrlProvider().withUsername(false).get(host), pool); } }
DAVSession extends HttpSession<DAVClient> { @Override public DAVClient connect(final Proxy proxy, final HostKeyCallback key, final LoginCallback prompt) throws BackgroundException { final HttpClientBuilder pool = builder.build(proxy, this, prompt); pool.setRedirectStrategy(new DAVRedirectStrategy(redirect)); return new DAVClient(new HostUrlProvider().withUsername(false).get(host), pool); } DAVSession(final Host host, final X509TrustManager trust, final X509KeyManager key);  DAVSession(final Host host, final X509TrustManager trust, final X509KeyManager key, final RedirectCallback redirect); }
DAVSession extends HttpSession<DAVClient> { @Override public DAVClient connect(final Proxy proxy, final HostKeyCallback key, final LoginCallback prompt) throws BackgroundException { final HttpClientBuilder pool = builder.build(proxy, this, prompt); pool.setRedirectStrategy(new DAVRedirectStrategy(redirect)); return new DAVClient(new HostUrlProvider().withUsername(false).get(host), pool); } DAVSession(final Host host, final X509TrustManager trust, final X509KeyManager key);  DAVSession(final Host host, final X509TrustManager trust, final X509KeyManager key, final RedirectCallback redirect); @Override DAVClient connect(final Proxy proxy, final HostKeyCallback key, final LoginCallback prompt); @Override void login(final Proxy proxy, final LoginCallback prompt, final CancelCallback cancel); @Override boolean alert(final ConnectionCallback callback); @Override @SuppressWarnings("unchecked") T _getFeature(final Class<T> type); }
DAVSession extends HttpSession<DAVClient> { @Override public DAVClient connect(final Proxy proxy, final HostKeyCallback key, final LoginCallback prompt) throws BackgroundException { final HttpClientBuilder pool = builder.build(proxy, this, prompt); pool.setRedirectStrategy(new DAVRedirectStrategy(redirect)); return new DAVClient(new HostUrlProvider().withUsername(false).get(host), pool); } DAVSession(final Host host, final X509TrustManager trust, final X509KeyManager key);  DAVSession(final Host host, final X509TrustManager trust, final X509KeyManager key, final RedirectCallback redirect); @Override DAVClient connect(final Proxy proxy, final HostKeyCallback key, final LoginCallback prompt); @Override void login(final Proxy proxy, final LoginCallback prompt, final CancelCallback cancel); @Override boolean alert(final ConnectionCallback callback); @Override @SuppressWarnings("unchecked") T _getFeature(final Class<T> type);  }