Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2007-07-18 19:36:34 +0000
committerMichael Valenta2007-07-18 19:36:34 +0000
commit8e194b7c10253c77e8431590e6fe032459f37e2f (patch)
tree5113239757616a693db1eab3515929fedbae50d7
parent8c1ee68746d9a1059e9aed178650dabc98d63681 (diff)
downloadeclipse.platform.team-8e194b7c10253c77e8431590e6fe032459f37e2f.tar.gz
eclipse.platform.team-8e194b7c10253c77e8431590e6fe032459f37e2f.tar.xz
eclipse.platform.team-8e194b7c10253c77e8431590e6fe032459f37e2f.zip
Bug 181786 [Proxy] Make ResponsiveSocketFactory API in some form
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/ResponsiveSocketFactory.java19
1 files changed, 3 insertions, 16 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/ResponsiveSocketFactory.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/ResponsiveSocketFactory.java
index 64626b43a..f598b2bbd 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/ResponsiveSocketFactory.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/ResponsiveSocketFactory.java
@@ -10,7 +10,8 @@
*******************************************************************************/
package org.eclipse.team.internal.ccvs.core.util;
-import java.io.*;
+import java.io.IOException;
+import java.io.InterruptedIOException;
import java.lang.reflect.*;
import java.net.*;
@@ -18,16 +19,12 @@ import org.eclipse.core.runtime.*;
import org.eclipse.osgi.util.NLS;
import org.eclipse.team.internal.ccvs.core.*;
-import com.jcraft.jsch.SocketFactory;
-
/**
* Class copied from "org.eclipse.jsch.internal.core"
*/
-public class ResponsiveSocketFactory implements SocketFactory {
+public class ResponsiveSocketFactory {
private static final String JAVA_NET_PROXY="java.net.Proxy"; //$NON-NLS-1$
private static final int DEFAULT_TIMEOUT=60; // Seconds
- InputStream in = null;
- OutputStream out = null;
private IProgressMonitor monitor;
private final int timeout;
private static Class proxyClass;
@@ -38,16 +35,6 @@ public class ResponsiveSocketFactory implements SocketFactory {
this.monitor = monitor;
this.timeout=timeout;
}
- public InputStream getInputStream(Socket socket) throws IOException {
- if (in == null)
- in = socket.getInputStream();
- return in;
- }
- public OutputStream getOutputStream(Socket socket) throws IOException {
- if (out == null)
- out = socket.getOutputStream();
- return out;
- }
public Socket createSocket(String host, int port) throws IOException, UnknownHostException {
Socket socket = null;
socket = createSocket(host, port, timeout / 1000, monitor);

Back to the top