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