Simplify API: remove HttpConnectionProvider
This commit is contained in:
@@ -9,6 +9,7 @@ import io.socket.utf8.UTF8Exception;
|
||||
|
||||
import javax.net.ssl.HostnameVerifier;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import java.net.Proxy;
|
||||
import java.util.Map;
|
||||
|
||||
public abstract class Transport extends Emitter {
|
||||
@@ -43,11 +44,9 @@ public abstract class Transport extends Emitter {
|
||||
protected SSLContext sslContext;
|
||||
protected Socket socket;
|
||||
protected HostnameVerifier hostnameVerifier;
|
||||
protected String proxyHost;
|
||||
protected int proxyPort;
|
||||
protected Proxy proxy;
|
||||
protected String proxyLogin;
|
||||
protected String proxyPassword;
|
||||
protected HttpConnectionProvider httpConnectionProvider;
|
||||
|
||||
protected ReadyState readyState;
|
||||
|
||||
@@ -62,11 +61,9 @@ public abstract class Transport extends Emitter {
|
||||
this.sslContext = opts.sslContext;
|
||||
this.socket = opts.socket;
|
||||
this.hostnameVerifier = opts.hostnameVerifier;
|
||||
this.proxyHost = opts.proxyHost;
|
||||
this.proxyPort = opts.proxyPort;
|
||||
this.proxy = opts.proxy;
|
||||
this.proxyLogin = opts.proxyLogin;
|
||||
this.proxyPassword = opts.proxyPassword;
|
||||
this.httpConnectionProvider = opts.httpConnectionProvider;
|
||||
}
|
||||
|
||||
protected Transport onError(String msg, Exception desc) {
|
||||
@@ -162,10 +159,8 @@ public abstract class Transport extends Emitter {
|
||||
public SSLContext sslContext;
|
||||
public HostnameVerifier hostnameVerifier;
|
||||
protected Socket socket;
|
||||
public String proxyHost;
|
||||
public int proxyPort = -1;
|
||||
public Proxy proxy;
|
||||
public String proxyLogin;
|
||||
public String proxyPassword;
|
||||
public HttpConnectionProvider httpConnectionProvider;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user