Overview | Package | Class | Tree | Deprecated | Index | Help
| Apache JMeter
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.jmeter.util
Class HttpSSLProtocolSocketFactory

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

All Implemented Interfaces:
  org.apache.commons.httpclient.protocol.ProtocolSocketFactory, org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory

public class HttpSSLProtocolSocketFactory
extends SSLSocketFactory
implements org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory

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
`Socket` | `createSocket()`
`Socket` | `createSocket(InetAddress host, int port)`
`Socket` | `createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)`
`Socket` | `createSocket(Socket socket, String host, int port, boolean autoClose)`
`Socket` | `createSocket(String host, int port)`
`Socket` | `createSocket(String host, int port, InetAddress clientHost, int clientPort)`
`Socket` | `createSocket(String host, int port, InetAddress localAddress, int localPort, org.apache.commons.httpclient.params.HttpConnectionParams params)` Attempts to get a new socket connection to the given host within the given time limit.
`String[]` | `getDefaultCipherSuites()`
`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 Socket createSocket(String host,
                               int port,
                               InetAddress localAddress,
                               int localPort,
                               org.apache.commons.httpclient.params.HttpConnectionParams params)
                        throws IOException,
                               UnknownHostException,
                               org.apache.commons.httpclient.ConnectTimeoutException

  Attempts to get a new socket connection to the given host within the given time limit.

  Specified by:
    `createSocket` in interface `org.apache.commons.httpclient.protocol.ProtocolSocketFactory`
  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:
    `IOException` - if an I/O error occurs while creating the socket
    `UnknownHostException` - if the IP address of the host cannot be determined
    `org.apache.commons.httpclient.ConnectTimeoutException`

### createSocket

    public Socket createSocket(String host,
                               int port)
                        throws IOException,
                               UnknownHostException

  Specified by:
    `createSocket` in interface `org.apache.commons.httpclient.protocol.ProtocolSocketFactory`
  Throws:
    `IOException`
    `UnknownHostException`
  See Also:
    `ProtocolSocketFactory.createSocket(java.lang.String,int)`

### createSocket

    public Socket createSocket()
                        throws IOException,
                               UnknownHostException

  Throws:
    `IOException`
    `UnknownHostException`
  See Also:
    `SocketFactory.createSocket()`

### createSocket

    public Socket createSocket(Socket socket,
                               String host,
                               int port,
                               boolean autoClose)
                        throws IOException,
                               UnknownHostException

  Specified by:
    `createSocket` in interface `org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory`
  Throws:
    `IOException`
    `UnknownHostException`
  See Also:
    `SecureProtocolSocketFactory.createSocket(java.net.Socket,java.lang.String,int,boolean)`

### createSocket

    public Socket createSocket(String host,
                               int port,
                               InetAddress clientHost,
                               int clientPort)
                        throws IOException,
                               UnknownHostException

  Specified by:
    `createSocket` in interface `org.apache.commons.httpclient.protocol.ProtocolSocketFactory`
  Throws:
    `IOException`
    `UnknownHostException`
  See Also:
    `ProtocolSocketFactory.createSocket(java.lang.String,int,java.net.InetAddress,int)`

### createSocket

    public Socket createSocket(InetAddress host,
                               int port)
                        throws IOException

  Throws:
    `IOException`

### createSocket

    public Socket createSocket(InetAddress address,
                               int port,
                               InetAddress localAddress,
                               int localPort)
                        throws IOException

  Throws:
    `IOException`

### getDefaultCipherSuites

    public String[] getDefaultCipherSuites()

### getSupportedCipherSuites

    public String[] getSupportedCipherSuites()

Overview | Package | Class | Tree | Deprecated | Index | Help
| Apache JMeter
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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