public interface TCPClient
| 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)
Deprecated.
since 3.3, implement
read(InputStream, SampleResult) instead, will be removed in future version |
String |
read(InputStream is,
SampleResult sampleResult) |
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
|
void |
write(OutputStream os,
InputStream is) |
void |
write(OutputStream os,
String s) |
void setupTest()
void teardownTest()
void write(OutputStream os, InputStream is) throws IOException
os - -
OutputStream for socketis - -
InputStream to be written to SocketIOException - when writing failsvoid write(OutputStream os, String s) throws IOException
os - -
OutputStream for sockets - -
String to writeIOException - when writing fails@Deprecated String read(InputStream is) throws ReadException
read(InputStream, SampleResult) instead, will be removed in future versionis - -
InputStream for socketReadException - exception that can contain partial response (Response until error occurred)String read(InputStream is, SampleResult sampleResult) throws ReadException
is - -
InputStream for socketsampleResult - SampleResultReadException - exception that can contain partial responsebyte getEolByte()
String getCharset()
void setEolByte(int eolInt)
eolInt - The value to setCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.