Apache JMeter

org.apache.jmeter.util
Class HttpSSLProtocolSocketFactory

java.lang.Object
  extended by javax.net.SocketFactory
      extended by javax.net.ssl.SSLSocketFactory
          extended by org.apache.jmeter.util.HttpSSLProtocolSocketFactory

public class HttpSSLProtocolSocketFactory
extends javax.net.ssl.SSLSocketFactory

Derived from EasySSLProtocolFactory Used by JsseSSLManager to set up the HttpClient and Java https socket handling


Constructor Summary
HttpSSLProtocolSocketFactory(JsseSSLManager sslManager)
           
HttpSSLProtocolSocketFactory(JsseSSLManager sslManager, int cps)
           
 
Method Summary
 java.net.Socket createSocket()
           
 java.net.Socket createSocket(java.net.InetAddress host, int port)
           
 java.net.Socket createSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddress, int localPort)
           
 java.net.Socket createSocket(java.net.Socket socket, java.lang.String host, int port, boolean autoClose)
           
 java.net.Socket createSocket(java.lang.String host, int port)
           
 java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress clientHost, int clientPort)
           
 java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress localAddress, int localPort, HttpConnectionParams params)
          Attempts to get a new socket connection to the given host within the given time limit.
 java.lang.String[] getDefaultCipherSuites()
           
 java.lang.String[] getSupportedCipherSuites()
           
 
Methods inherited from class javax.net.ssl.SSLSocketFactory
getDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpSSLProtocolSocketFactory

public HttpSSLProtocolSocketFactory(JsseSSLManager sslManager)

HttpSSLProtocolSocketFactory

public HttpSSLProtocolSocketFactory(JsseSSLManager sslManager,
                                    int cps)
Method Detail

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port,
                                    java.net.InetAddress localAddress,
                                    int localPort,
                                    HttpConnectionParams params)
                             throws java.io.IOException,
                                    java.net.UnknownHostException,
                                    ConnectTimeoutException
Attempts to get a new socket connection to the given host within the given time limit.

Parameters:
host - the host name/IP
port - the port on the host
localAddress - the local host name/IP to bind the socket to
localPort - the port on the local machine
params - Http connection parameters
Returns:
Socket a new socket
Throws:
java.io.IOException - if an I/O error occurs while creating the socket
java.net.UnknownHostException - if the IP address of the host cannot be determined
ConnectTimeoutException

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Specified by:
createSocket in class javax.net.SocketFactory
Throws:
java.io.IOException
java.net.UnknownHostException
See Also:
SecureProtocolSocketFactory#createSocket(java.lang.String,int)

createSocket

public java.net.Socket createSocket()
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Overrides:
createSocket in class javax.net.SocketFactory
Throws:
java.io.IOException
java.net.UnknownHostException
See Also:
SocketFactory.createSocket()

createSocket

public java.net.Socket createSocket(java.net.Socket socket,
                                    java.lang.String host,
                                    int port,
                                    boolean autoClose)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Specified by:
createSocket in class javax.net.ssl.SSLSocketFactory
Throws:
java.io.IOException
java.net.UnknownHostException
See Also:
SecureProtocolSocketFactory#createSocket(java.net.Socket,java.lang.String,int,boolean)

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port,
                                    java.net.InetAddress clientHost,
                                    int clientPort)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Specified by:
createSocket in class javax.net.SocketFactory
Throws:
java.io.IOException
java.net.UnknownHostException
See Also:
SecureProtocolSocketFactory#createSocket(java.lang.String,int,java.net.InetAddress,int)

createSocket

public java.net.Socket createSocket(java.net.InetAddress host,
                                    int port)
                             throws java.io.IOException
Specified by:
createSocket in class javax.net.SocketFactory
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket(java.net.InetAddress address,
                                    int port,
                                    java.net.InetAddress localAddress,
                                    int localPort)
                             throws java.io.IOException
Specified by:
createSocket in class javax.net.SocketFactory
Throws:
java.io.IOException

getDefaultCipherSuites

public java.lang.String[] getDefaultCipherSuites()
Specified by:
getDefaultCipherSuites in class javax.net.ssl.SSLSocketFactory

getSupportedCipherSuites

public java.lang.String[] getSupportedCipherSuites()
Specified by:
getSupportedCipherSuites in class javax.net.ssl.SSLSocketFactory

Apache JMeter

Copyright © 1998-2009 Apache Software Foundation. All Rights Reserved.