org.browsermob.proxy.http
Class TrustingSSLSocketFactory

java.lang.Object
  extended by org.apache.http.conn.ssl.SSLSocketFactory
      extended by 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


Field Summary
 
Fields inherited from class org.apache.http.conn.ssl.SSLSocketFactory
ALLOW_ALL_HOSTNAME_VERIFIER, BROWSER_COMPATIBLE_HOSTNAME_VERIFIER, SSL, SSLV2, STRICT_HOSTNAME_VERIFIER, TLS
 
Constructor Summary
TrustingSSLSocketFactory(org.apache.http.conn.scheme.HostNameResolver nameResolver)
           
 
Method Summary
 Socket connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, org.apache.http.params.HttpParams params)
           
 Socket createSocket()
           
 Socket createSocket(Socket socket, String host, int port, boolean autoClose)
           
 void setDownstreamKbps(long downstreamKbps)
           
 void setLatency(long latency)
           
 void setUpstreamKbps(long upstreamKbps)
           
 
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
 

Constructor Detail

TrustingSSLSocketFactory

public TrustingSSLSocketFactory(org.apache.http.conn.scheme.HostNameResolver nameResolver)
Method Detail

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.