Package org.apache.jmeter.util
Class SlowSSLSocket
-
- All Implemented Interfaces:
-
java.io.Closeable
,java.lang.AutoCloseable
public class SlowSSLSocket extends SSLSocket
"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 Summary
Constructors Constructor Description SlowSSLSocket(SSLSocket sock, int cps)
Wrap an SSLSocket with slow input and output streams
-
Method Summary
-
Methods inherited from class javax.net.ssl.SSLSocket
getApplicationProtocol, getHandshakeApplicationProtocol, getHandshakeApplicationProtocolSelector, getHandshakeSession, getSSLParameters, setHandshakeApplicationProtocolSelector, setSSLParameters
-
Methods inherited from class java.net.Socket
getOption, setOption, setPerformancePreferences, setSocketImplFactory, supportedOptions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SlowSSLSocket
SlowSSLSocket(SSLSocket sock, int cps)
Wrap an SSLSocket with slow input and output streams- Parameters:
sock
- SSLSocket to be wrappedcps
- characters per second to emulate
-
-
Method Detail
-
getOutputStream
OutputStream getOutputStream()
-
getInputStream
InputStream getInputStream()
-
addHandshakeCompletedListener
void addHandshakeCompletedListener(HandshakeCompletedListener arg0)
-
getEnableSessionCreation
boolean getEnableSessionCreation()
-
getEnabledCipherSuites
Array<String> getEnabledCipherSuites()
-
getEnabledProtocols
Array<String> getEnabledProtocols()
-
getNeedClientAuth
boolean getNeedClientAuth()
-
getSession
SSLSession getSession()
-
getSupportedCipherSuites
Array<String> getSupportedCipherSuites()
-
getSupportedProtocols
Array<String> getSupportedProtocols()
-
getUseClientMode
boolean getUseClientMode()
-
getWantClientAuth
boolean getWantClientAuth()
-
removeHandshakeCompletedListener
void removeHandshakeCompletedListener(HandshakeCompletedListener arg0)
-
setEnableSessionCreation
void setEnableSessionCreation(boolean arg0)
-
setEnabledCipherSuites
void setEnabledCipherSuites(Array<String> arg0)
-
setEnabledProtocols
void setEnabledProtocols(Array<String> arg0)
-
setNeedClientAuth
void setNeedClientAuth(boolean arg0)
-
setUseClientMode
void setUseClientMode(boolean arg0)
-
setWantClientAuth
void setWantClientAuth(boolean arg0)
-
startHandshake
void startHandshake()
-
bind
void bind(SocketAddress bindpoint)
-
close
synchronized void close()
-
connect
void connect(SocketAddress endpoint, int timeout)
-
connect
void connect(SocketAddress endpoint)
-
getChannel
SocketChannel getChannel()
-
getInetAddress
InetAddress getInetAddress()
-
getKeepAlive
boolean getKeepAlive()
-
getLocalAddress
InetAddress getLocalAddress()
-
getLocalPort
int getLocalPort()
-
getLocalSocketAddress
SocketAddress getLocalSocketAddress()
-
getOOBInline
boolean getOOBInline()
-
getPort
int getPort()
-
getReceiveBufferSize
synchronized int getReceiveBufferSize()
-
getRemoteSocketAddress
SocketAddress getRemoteSocketAddress()
-
getReuseAddress
boolean getReuseAddress()
-
getSendBufferSize
synchronized int getSendBufferSize()
-
getSoLinger
int getSoLinger()
-
getSoTimeout
synchronized int getSoTimeout()
-
getTcpNoDelay
boolean getTcpNoDelay()
-
getTrafficClass
int getTrafficClass()
-
isBound
boolean isBound()
-
isClosed
boolean isClosed()
-
isConnected
boolean isConnected()
-
isInputShutdown
boolean isInputShutdown()
-
isOutputShutdown
boolean isOutputShutdown()
-
sendUrgentData
void sendUrgentData(int data)
-
setKeepAlive
void setKeepAlive(boolean on)
-
setOOBInline
void setOOBInline(boolean on)
-
setReceiveBufferSize
synchronized void setReceiveBufferSize(int size)
-
setReuseAddress
void setReuseAddress(boolean on)
-
setSendBufferSize
synchronized void setSendBufferSize(int size)
-
setSoLinger
void setSoLinger(boolean on, int linger)
-
setSoTimeout
synchronized void setSoTimeout(int timeout)
-
setTcpNoDelay
void setTcpNoDelay(boolean on)
-
setTrafficClass
void setTrafficClass(int tc)
-
shutdownInput
void shutdownInput()
-
shutdownOutput
void shutdownOutput()
-
-
-
-