APISonar


ch.cyberduck.core.proxy.Proxy.Type.HTTP

> ch > cyberduck > core > proxy > Proxy > Type > HTTP
ch APIs cyberduck APIs core APIs proxy APIs Proxy APIs Type APIs HTTP APIs

Example 1
public void testNoResolveForHTTPProxy() throws Exception {
        final Session session = new S3Session(new Host(new S3Protocol(), "unknownhost.local", new Credentials("user", "")));
        final LoginConnectionService s = new LoginConnectionService(new DisabledProxyFinder() {
            @Override
            public Proxy find(final Host target) {
                return new Proxy(Proxy.Type.HTTP, "proxy.local", 6666);
            }
        }, new DisabledLoginCallback(),
                new DisabledHostKeyCallback(),
                new DisabledPasswordStore(),
                new DisabledProgressListener(),
                new DisabledTranscriptListener());
        s.check(session, PathCache.empty());
    }