Save This Page
Home » jakarta-jmeter-2.3.4_src » org.apache.jmeter.protocol.http.util » [javadoc | source]
org.apache.jmeter.protocol.http.util
public class: LoopbackHttpClientSocketFactory [javadoc | source]
java.lang.Object
   org.apache.jmeter.protocol.http.util.LoopbackHttpClientSocketFactory

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

HttpClient protocol factory to generate Loopback HTTP sockets
Constructor:
 public LoopbackHttpClientSocketFactory() 
Method from org.apache.jmeter.protocol.http.util.LoopbackHttpClientSocketFactory Summary:
createSocket,   createSocket,   createSocket,   setup
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jmeter.protocol.http.util.LoopbackHttpClientSocketFactory Detail:
 public Socket createSocket(String host,
    int port) throws IOException, UnknownHostException 
 public Socket createSocket(String host,
    int port,
    InetAddress clientHost,
    int clientPort) throws IOException, UnknownHostException 
 public Socket createSocket(String host,
    int port,
    InetAddress localAddress,
    int localPort,
    HttpConnectionParams params) throws IOException, UnknownHostException, ConnectTimeoutException 
 public static  void setup() 
    Convenience method to set up the necessary HttpClient protocol and URL handler. Only works for HttpClient, because it's not possible (or at least very difficult) to provide a different socket factory for the HttpURLConnection class.