blob: 3a75d2bc01865772fb0e410818c23ab63f310826 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/*******************************************************************************
* Copyright (c) 2008, 2010 Oakland Software Incorporated and others
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Oakland Software Incorporated - initial API and implementation
* IBM Corporation - implementation
*******************************************************************************/
package org.eclipse.core.internal.net;
import java.net.URI;
import org.eclipse.core.net.proxy.IProxyData;
/**
* Returns proxies to use.
*/
public abstract class AbstractProxyProvider {
/**
* Returns proxies to use with the given URI. Returns empty array
* when there is no appropriate proxy.
*
* @param uri
* the URI that a connection is required to
* @return an array of proxies for the given URI
*/
public abstract IProxyData[] select(URI uri);
protected abstract IProxyData[] getProxyData();
protected abstract String[] getNonProxiedHosts();
}
|