org.browsermob.proxy.http
Class TrustingSSLSocketFactory
java.lang.Object
org.apache.http.conn.ssl.SSLSocketFactory
org.browsermob.proxy.http.TrustingSSLSocketFactory
- All Implemented Interfaces:
- org.apache.http.conn.scheme.LayeredSocketFactory, org.apache.http.conn.scheme.SocketFactory
public class TrustingSSLSocketFactory
- extends org.apache.http.conn.ssl.SSLSocketFactory
| Fields inherited from class org.apache.http.conn.ssl.SSLSocketFactory |
ALLOW_ALL_HOSTNAME_VERIFIER, BROWSER_COMPATIBLE_HOSTNAME_VERIFIER, SSL, SSLV2, STRICT_HOSTNAME_VERIFIER, TLS |
| Methods inherited from class org.apache.http.conn.ssl.SSLSocketFactory |
getHostnameVerifier, getSocketFactory, isSecure, setHostnameVerifier |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrustingSSLSocketFactory
public TrustingSSLSocketFactory(org.apache.http.conn.scheme.HostNameResolver nameResolver)
createSocket
public Socket createSocket(Socket socket,
String host,
int port,
boolean autoClose)
throws IOException,
UnknownHostException
- Specified by:
createSocket in interface org.apache.http.conn.scheme.LayeredSocketFactory- Overrides:
createSocket in class org.apache.http.conn.ssl.SSLSocketFactory
- Throws:
IOException
UnknownHostException
connectSocket
public Socket connectSocket(Socket sock,
String host,
int port,
InetAddress localAddress,
int localPort,
org.apache.http.params.HttpParams params)
throws IOException
- Specified by:
connectSocket in interface org.apache.http.conn.scheme.SocketFactory- Overrides:
connectSocket in class org.apache.http.conn.ssl.SSLSocketFactory
- Throws:
IOException
createSocket
public Socket createSocket()
throws IOException
- Specified by:
createSocket in interface org.apache.http.conn.scheme.SocketFactory- Overrides:
createSocket in class org.apache.http.conn.ssl.SSLSocketFactory
- Throws:
IOException
setDownstreamKbps
public void setDownstreamKbps(long downstreamKbps)
setUpstreamKbps
public void setUpstreamKbps(long upstreamKbps)
setLatency
public void setLatency(long latency)
Copyright © 2011. All Rights Reserved.