public abstract class AbstractTCPClient extends java.lang.Object implements TCPClient
| Modifier and Type | Field and Description |
|---|---|
protected byte |
eolByte |
protected boolean |
useEolByte |
| Constructor and Description |
|---|
AbstractTCPClient() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCharset()
Get the charset.
|
byte |
getEolByte()
Get the end-of-line/end-of-message byte.
|
java.lang.String |
read(java.io.InputStream is,
SampleResult sampleResult)
Default implementation calls
TCPClient.read(InputStream) for backward compatibility |
void |
setCharset(java.lang.String charset) |
void |
setEolByte(int eolInt)
Set the end-of-line/end-of-message byte.
|
void |
setupTest()
Invoked when the thread starts.
|
void |
teardownTest()
Invoked when the thread ends
|
public byte getEolByte()
getEolByte in interface TCPClientpublic void setEolByte(int eolInt)
setEolByte in interface TCPClienteolInt - The value to setpublic void setupTest()
public void teardownTest()
teardownTest in interface TCPClientpublic java.lang.String getCharset()
TCPClientgetCharset in interface TCPClientpublic void setCharset(java.lang.String charset)
charset - the charset to setpublic java.lang.String read(java.io.InputStream is,
SampleResult sampleResult)
throws ReadException
TCPClient.read(InputStream) for backward compatibilityread in interface TCPClientis - -
InputStream for socketsampleResult - SampleResultReadException - exception that can contain partial responseTCPClient.read(java.io.InputStream, org.apache.jmeter.samplers.SampleResult)Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.