Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/WindowsProxyProvider.java')
-rw-r--r--bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/WindowsProxyProvider.java68
1 files changed, 0 insertions, 68 deletions
diff --git a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/WindowsProxyProvider.java b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/WindowsProxyProvider.java
deleted file mode 100644
index aec448954..000000000
--- a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/WindowsProxyProvider.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2009 compeople AG and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * compeople AG (Stefan Liebig) - initial API and implementation
- * IBM Corporation - implementation
- *******************************************************************************/
-package org.eclipse.core.internal.net;
-
-import java.net.URI;
-
-import org.eclipse.core.internal.net.proxy.win32.winhttp.WinHttpProxyProvider;
-import org.eclipse.core.net.proxy.IProxyData;
-
-public class WindowsProxyProvider extends AbstractProxyProvider {
-
- private static final String LIBRARY_NAME = "jWinHttp-1.0.0"; //$NON-NLS-1$
-
- private static boolean jWinHttpLoaded = false;
-
- static {
- try {
- System.loadLibrary(LIBRARY_NAME);
- if (Policy.DEBUG_SYSTEM_PROVIDERS)
- Policy.debug("Loaded " + LIBRARY_NAME + " library"); //$NON-NLS-1$ //$NON-NLS-2$
- jWinHttpLoaded = true;
- } catch (final UnsatisfiedLinkError e) {
- Activator.logError(
- "Could not load library: " + System.mapLibraryName(LIBRARY_NAME), e); //$NON-NLS-1$
- }
- }
-
- private WinHttpProxyProvider winHttpProxyProvider;
-
- public WindowsProxyProvider() {
- if (jWinHttpLoaded) {
- winHttpProxyProvider = new WinHttpProxyProvider();
- } else {
- winHttpProxyProvider = null;
- }
- }
-
- protected IProxyData[] getProxyData(URI uri) {
- if (jWinHttpLoaded) {
- return winHttpProxyProvider.getProxyData(uri);
- }
- return new IProxyData[0];
- }
-
- protected IProxyData[] getProxyData() {
- if (jWinHttpLoaded) {
- return winHttpProxyProvider.getProxyData();
- }
- return new IProxyData[0];
- }
-
- protected String[] getNonProxiedHosts() {
- if (jWinHttpLoaded) {
- return winHttpProxyProvider.getNonProxiedHosts();
- }
- return new String[0];
- }
-
-}

Back to the top