Class HttpSSLProtocolSocketFactory
java.lang.Object
javax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
org.apache.jmeter.util.HttpSSLProtocolSocketFactory
Derived from EasySSLProtocolFactory
Used by JsseSSLManager to set up the Commons HttpClient and Java https socket handling
-
Constructor Summary
ConstructorsConstructorDescriptionHttpSSLProtocolSocketFactory(JsseSSLManager sslManager) HttpSSLProtocolSocketFactory(JsseSSLManager sslManager, int cps) -
Method Summary
Modifier and TypeMethodDescriptioncreateSocket(String host, int port) createSocket(String host, int port, InetAddress clientHost, int clientPort) createSocket(String host, int port, InetAddress localAddress, int localPort, HttpConnectionParams params) Attempts to get a new socket connection to the given host within the given time limit.createSocket(InetAddress host, int port) createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) createSocket(Socket socket, String host, int port, boolean autoClose) String[]String[]Methods inherited from class SSLSocketFactory
createSocket, getDefault
-
Constructor Details
-
HttpSSLProtocolSocketFactory
-
HttpSSLProtocolSocketFactory
-
-
Method Details
-
createSocket
public Socket createSocket(String host, int port, InetAddress localAddress, int localPort, HttpConnectionParams params) throws IOException, UnknownHostException, ConnectTimeoutException Attempts to get a new socket connection to the given host within the given time limit.- Parameters:
host- the host name/IPport- the port on the hostlocalAddress- the local host name/IP to bind the socket tolocalPort- the port on the local machineparams-invalid reference
Http connection parameters- Returns:
- Socket a new socket
- Throws:
IOException- if an I/O error occurs while creating the socketUnknownHostException- if the IP address of the host cannot be determinedConnectTimeoutException
-
createSocket
- Specified by:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException- See Also:
-
createSocket
- Overrides:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException- See Also:
-
createSocket
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException, UnknownHostException - Specified by:
createSocketin classSSLSocketFactory- Throws:
IOExceptionUnknownHostException- See Also:
-
createSocket
public Socket createSocket(String host, int port, InetAddress clientHost, int clientPort) throws IOException, UnknownHostException - Specified by:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException- See Also:
-
createSocket
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException - Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
getDefaultCipherSuites
- Specified by:
getDefaultCipherSuitesin classSSLSocketFactory
-
getSupportedCipherSuites
- Specified by:
getSupportedCipherSuitesin classSSLSocketFactory
-