Package org.apache.jmeter.util
Class SlowSSLSocket
java.lang.Object
java.net.Socket
javax.net.ssl.SSLSocket
org.apache.jmeter.util.SlowSSLSocket
- All Implemented Interfaces:
- Closeable,- AutoCloseable
"Slow" SSLsocket implementation to emulate dial-up modems etc
 WARNING: the class relies on overriding all superclass methods in order to apply them to the input socket.
 Any missing methods will access the superclass socket, which will probably be in the wrong state.
- 
Constructor SummaryConstructorsConstructorDescriptionSlowSSLSocket(SSLSocket sock, int cps) Wrap an SSLSocket with slow input and output streams
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidbind(SocketAddress bindpoint) voidclose()voidconnect(SocketAddress endpoint) voidconnect(SocketAddress endpoint, int timeout) String[]String[]booleanbooleanintbooleanbooleanintgetPort()intbooleanintintintString[]String[]booleanintbooleanbooleanbooleanisBound()booleanisClosed()booleanbooleanbooleanvoidvoidsendUrgentData(int data) voidsetEnabledCipherSuites(String[] arg0) voidsetEnabledProtocols(String[] arg0) voidsetEnableSessionCreation(boolean arg0) voidsetKeepAlive(boolean on) voidsetNeedClientAuth(boolean arg0) voidsetOOBInline(boolean on) voidsetReceiveBufferSize(int size) voidsetReuseAddress(boolean on) voidsetSendBufferSize(int size) voidsetSoLinger(boolean on, int linger) voidsetSoTimeout(int timeout) voidsetTcpNoDelay(boolean on) voidsetTrafficClass(int tc) voidsetUseClientMode(boolean arg0) voidsetWantClientAuth(boolean arg0) voidvoidvoidtoString()Methods inherited from class javax.net.ssl.SSLSocketgetApplicationProtocol, getHandshakeApplicationProtocol, getHandshakeApplicationProtocolSelector, getHandshakeSession, getSSLParameters, setHandshakeApplicationProtocolSelector, setSSLParametersMethods inherited from class java.net.SocketgetOption, setOption, setPerformancePreferences, setSocketImplFactory, supportedOptions
- 
Constructor Details- 
SlowSSLSocketWrap an SSLSocket with slow input and output streams- Parameters:
- sock- SSLSocket to be wrapped
- cps- characters per second to emulate
 
 
- 
- 
Method Details- 
getOutputStream- Overrides:
- getOutputStreamin class- Socket
- Throws:
- IOException
 
- 
getInputStream- Overrides:
- getInputStreamin class- Socket
- Throws:
- IOException
 
- 
addHandshakeCompletedListener- Specified by:
- addHandshakeCompletedListenerin class- SSLSocket
 
- 
getEnableSessionCreationpublic boolean getEnableSessionCreation()- Specified by:
- getEnableSessionCreationin class- SSLSocket
 
- 
getEnabledCipherSuites- Specified by:
- getEnabledCipherSuitesin class- SSLSocket
 
- 
getEnabledProtocols- Specified by:
- getEnabledProtocolsin class- SSLSocket
 
- 
getNeedClientAuthpublic boolean getNeedClientAuth()- Specified by:
- getNeedClientAuthin class- SSLSocket
 
- 
getSession- Specified by:
- getSessionin class- SSLSocket
 
- 
getSupportedCipherSuites- Specified by:
- getSupportedCipherSuitesin class- SSLSocket
 
- 
getSupportedProtocols- Specified by:
- getSupportedProtocolsin class- SSLSocket
 
- 
getUseClientModepublic boolean getUseClientMode()- Specified by:
- getUseClientModein class- SSLSocket
 
- 
getWantClientAuthpublic boolean getWantClientAuth()- Specified by:
- getWantClientAuthin class- SSLSocket
 
- 
removeHandshakeCompletedListener- Specified by:
- removeHandshakeCompletedListenerin class- SSLSocket
 
- 
setEnableSessionCreationpublic void setEnableSessionCreation(boolean arg0) - Specified by:
- setEnableSessionCreationin class- SSLSocket
 
- 
setEnabledCipherSuites- Specified by:
- setEnabledCipherSuitesin class- SSLSocket
 
- 
setEnabledProtocols- Specified by:
- setEnabledProtocolsin class- SSLSocket
 
- 
setNeedClientAuthpublic void setNeedClientAuth(boolean arg0) - Specified by:
- setNeedClientAuthin class- SSLSocket
 
- 
setUseClientModepublic void setUseClientMode(boolean arg0) - Specified by:
- setUseClientModein class- SSLSocket
 
- 
setWantClientAuthpublic void setWantClientAuth(boolean arg0) - Specified by:
- setWantClientAuthin class- SSLSocket
 
- 
startHandshake- Specified by:
- startHandshakein class- SSLSocket
- Throws:
- IOException
 
- 
bind- Overrides:
- bindin class- Socket
- Throws:
- IOException
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- Socket
- Throws:
- IOException
 
- 
connect- Overrides:
- connectin class- Socket
- Throws:
- IOException
 
- 
connect- Overrides:
- connectin class- Socket
- Throws:
- IOException
 
- 
getChannel- Overrides:
- getChannelin class- Socket
 
- 
getInetAddress- Overrides:
- getInetAddressin class- Socket
 
- 
getKeepAlive- Overrides:
- getKeepAlivein class- Socket
- Throws:
- SocketException
 
- 
getLocalAddress- Overrides:
- getLocalAddressin class- Socket
 
- 
getLocalPortpublic int getLocalPort()- Overrides:
- getLocalPortin class- Socket
 
- 
getLocalSocketAddress- Overrides:
- getLocalSocketAddressin class- Socket
 
- 
getOOBInline- Overrides:
- getOOBInlinein class- Socket
- Throws:
- SocketException
 
- 
getPortpublic int getPort()
- 
getReceiveBufferSize- Overrides:
- getReceiveBufferSizein class- Socket
- Throws:
- SocketException
 
- 
getRemoteSocketAddress- Overrides:
- getRemoteSocketAddressin class- Socket
 
- 
getReuseAddress- Overrides:
- getReuseAddressin class- Socket
- Throws:
- SocketException
 
- 
getSendBufferSize- Overrides:
- getSendBufferSizein class- Socket
- Throws:
- SocketException
 
- 
getSoLinger- Overrides:
- getSoLingerin class- Socket
- Throws:
- SocketException
 
- 
getSoTimeout- Overrides:
- getSoTimeoutin class- Socket
- Throws:
- SocketException
 
- 
getTcpNoDelay- Overrides:
- getTcpNoDelayin class- Socket
- Throws:
- SocketException
 
- 
getTrafficClass- Overrides:
- getTrafficClassin class- Socket
- Throws:
- SocketException
 
- 
isBoundpublic boolean isBound()
- 
isClosedpublic boolean isClosed()
- 
isConnectedpublic boolean isConnected()- Overrides:
- isConnectedin class- Socket
 
- 
isInputShutdownpublic boolean isInputShutdown()- Overrides:
- isInputShutdownin class- Socket
 
- 
isOutputShutdownpublic boolean isOutputShutdown()- Overrides:
- isOutputShutdownin class- Socket
 
- 
sendUrgentData- Overrides:
- sendUrgentDatain class- Socket
- Throws:
- IOException
 
- 
setKeepAlive- Overrides:
- setKeepAlivein class- Socket
- Throws:
- SocketException
 
- 
setOOBInline- Overrides:
- setOOBInlinein class- Socket
- Throws:
- SocketException
 
- 
setReceiveBufferSize- Overrides:
- setReceiveBufferSizein class- Socket
- Throws:
- SocketException
 
- 
setReuseAddress- Overrides:
- setReuseAddressin class- Socket
- Throws:
- SocketException
 
- 
setSendBufferSize- Overrides:
- setSendBufferSizein class- Socket
- Throws:
- SocketException
 
- 
setSoLinger- Overrides:
- setSoLingerin class- Socket
- Throws:
- SocketException
 
- 
setSoTimeout- Overrides:
- setSoTimeoutin class- Socket
- Throws:
- SocketException
 
- 
setTcpNoDelay- Overrides:
- setTcpNoDelayin class- Socket
- Throws:
- SocketException
 
- 
setTrafficClass- Overrides:
- setTrafficClassin class- Socket
- Throws:
- SocketException
 
- 
shutdownInput- Overrides:
- shutdownInputin class- Socket
- Throws:
- IOException
 
- 
shutdownOutput- Overrides:
- shutdownOutputin class- Socket
- Throws:
- IOException
 
- 
toString
 
-