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 TCPClient
public void setEolByte(int eolInt)
setEolByte
in interface TCPClient
eolInt
- The value to setpublic void setupTest()
public void teardownTest()
teardownTest
in interface TCPClient
public String getCharset()
TCPClient
getCharset
in interface TCPClient
public 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 TCPClient
is
- -
InputStream for socketsampleResult
- SampleResult
ReadException
- exception that can contain partial responseTCPClient.read(java.io.InputStream, org.apache.jmeter.samplers.SampleResult)
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.