Class SlowHCPlainConnectionSocketFactory
java.lang.Object
org.apache.http.conn.socket.PlainConnectionSocketFactory
org.apache.jmeter.protocol.http.util.SlowHCPlainConnectionSocketFactory
- All Implemented Interfaces:
org.apache.http.conn.socket.ConnectionSocketFactory
public class SlowHCPlainConnectionSocketFactory
extends org.apache.http.conn.socket.PlainConnectionSocketFactory
Apache HttpClient protocol factory to generate "slow" sockets for emulating dial-up modems
- Since:
- 5.0
-
Field Summary
Fields inherited from class org.apache.http.conn.socket.PlainConnectionSocketFactory
INSTANCE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.http.conn.socket.PlainConnectionSocketFactory
connectSocket, getSocketFactory
-
Constructor Details
-
SlowHCPlainConnectionSocketFactory
public SlowHCPlainConnectionSocketFactory(int cps) Create a factory- Parameters:
cps
- - characters per second
-
-
Method Details
-
createSocket
- Specified by:
createSocket
in interfaceorg.apache.http.conn.socket.ConnectionSocketFactory
- Overrides:
createSocket
in classorg.apache.http.conn.socket.PlainConnectionSocketFactory
- Throws:
IOException
-