public abstract class AbstractTCPClient extends 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 |
|---|---|
String |
getCharset()
Get the charset.
|
byte |
getEolByte()
Get the end-of-line/end-of-message byte.
|
String |
read(InputStream is,
SampleResult sampleResult)
Default implementation calls
TCPClient.read(InputStream) for backward compatibility |
void |
setCharset(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 String getCharset()
TCPClientgetCharset in interface TCPClientpublic void setCharset(String charset)
charset - the charset to setpublic String read(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-2019 Apache Software Foundation. All Rights Reserved.